A modern web app for finding and booking parking spots in Indian cities. Features GPS-based location detection, Google OAuth login, and JWT authentication.
- Smart Location Detection - Find nearby parking lots using GPS
- Dual Authentication - Login with password or Google account
- Real-time Availability - Check parking spot availability instantly
- User Dashboard - View and manage your bookings
- Admin Panel - Manage parking lots and monitor bookings
- QR Code Booking - Generate QR codes for your reservations
- Backend: Flask, SQLAlchemy, Flask-Login
- Auth: JWT tokens, Google OAuth (Authlib)
- Database: SQLite (dev), PostgreSQL-ready (production)
- Frontend: HTML, CSS (Glassmorphism), Vanilla JavaScript
- Deployment: Vercel-ready with WSGI
-
Clone the repository
git clone https://github.com/Abhinav3499/Parking-Management-System.git cd Parking-Management-System -
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
Create a
.envfile:SECRET_KEY=your-secret-key-here JWT_SECRET_KEY=your-jwt-secret GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret GOOGLE_REDIRECT_URI=http://localhost:5000/auth/google/callback
-
Run the app
python app.py
Visit http://localhost:5000
- Username:
admin - Password:
admin
├── app.py # Main application
├── config.py # Configuration
├── controllers/ # Route handlers
├── models/ # Database models
├── utils/ # JWT & OAuth utilities
├── templates/ # HTML templates
├── static/ # CSS, JS, images
└── instance/ # Database (not in git)
- Add a feature - Create routes in
controllers/ - Update UI - Edit templates in
templates/ - Modify styles - Update
static/css/style.css - Database changes - Update models in
models/models.py
- Go to Google Cloud Console
- Create OAuth 2.0 credentials
- Add authorized redirect URI:
http://localhost:5000/auth/google/callback - Copy Client ID and Secret to
.env