Backend for crowd management, queueing, booking, analytics, and admin dashboard.
- Django + Channels (WebSockets)
- PostgreSQL/TimescaleDB
- MQTT integration
- AI/ML (TensorFlow/PyTorch, Prophet)
- Twilio, FCM, Razorpay
- Install Python 3.10+
cd serverpython -m venv venv && source venv/bin/activatepip install -r requirements.txtcp .env.example .envand fill in valuespython manage.py migratepython manage.py runserver
- Use Gunicorn + Daphne for ASGI
- Configure Nginx/Apache as reverse proxy
- Set up SSL for HTTPS
- REST API for client and admin
- WebSocket endpoints for real-time data
- AI/ML prediction endpoints
- MQTT ingestion for IoT data
- Twilio/FCM alerting
- Payment integration
See .env.example for required keys (DB, FCM, Twilio, Razorpay, etc.)
See API_DOCS.md for endpoint details.