LMS / run.sh
Faizur Rahman Zunayed
Initial commit: Library Management System
58668c3
#!/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