File size: 761 Bytes
58668c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

# Library Management System Launcher
echo "πŸš€ Starting Library Management System..."
echo ""

# Navigate to LMS directory
cd "/Users/faizur.zunayed/Gwtf/LMS"

# Check if virtual environment exists, create if not
if [ ! -d "venv" ]; then
    echo "πŸ“¦ Setting up environment for first time..."
    python3.12 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
else
    source venv/bin/activate
fi

# Install dependencies if needed
echo "βœ… Environment ready!"
echo ""

# Run the application
echo "🌐 Starting server on http://127.0.0.1:5001"
echo "πŸ“§ Login: admin@lms.com / admin123"
echo ""
echo "Press Ctrl+C to stop the server"
echo "================================================"
echo ""

python3.12 app.py