#!/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