A production-ready, full-stack web application that digitizes queue management with real-time tracking, online booking, QR tokens, and live dashboards.
Built specifically for Hospitals and Government Offices in Sri Lanka π±π°
Check out the fully automated, 60FPS cinematic showcase of the Smart Queue Management System in action! It demonstrates the entire end-to-end flow from patient booking to staff queue management.
| Layer | Technology |
|---|---|
| Backend | Python 3.13+, Django 5+, Django REST Framework |
| Database | PostgreSQL |
| Real-time | Django Channels, WebSockets, Redis |
| Frontend | HTML5, CSS3, Bootstrap 5, JavaScript, AJAX |
| Auth | JWT (SimpleJWT), Role-Based Access Control |
| Reports | ReportLab (PDF), openpyxl (Excel), Chart.js |
| Other | QR Code generation, Email & WebSocket notifications |
- β Secure Access: Register, Login, Forgot Password, Edit Profile
- β Online Booking: Book Queue Online & View Current Position
- β Live Tracking: Real-time Wait Time Tracking via WebSockets
- β Digital Tokens: QR Code Token Generation & PDF Download
- β Notifications: Automated Email & WebSocket alerts
- β History: Submit Feedback & View Queue History
- β Queue Control: Call Next, Skip, Hold, or Complete Tokens
- β Dashboard: Real-time Staff Dashboard & Queue Processing
- β Management: Search Queue & View Today's Queue roster
- β Analytics: Live Queue Statistics
- β System Control: Manage Users, Staff, Branches, and Services
- β Analytics: Advanced Dashboard with Chart.js visual analytics
- β Exporting: Generate detailed Reports (PDF / Excel)
- β Settings: Feedback Management & System Settings
- Python 3.13+
- PostgreSQL 14+
- Redis 7+ (Required for WebSockets)
- Git
# 1. Clone the repository
git clone https://github.com/mt-abdulla-it/smart-queue-management-system.git
cd smart-queue-management-system
# 2. Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Linux/Mac
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure environment
cp .env.example .env
# Edit .env with your database and Redis credentials
# 5. Create PostgreSQL database
# psql -U postgres
# CREATE DATABASE smart_queue_db;
# 6. Run migrations
python manage.py makemigrations
python manage.py migrate
# 7. Create superuser
python manage.py createsuperuser
# 8. Collect static files
python manage.py collectstatic --noinput
# 9. Run development server (ASGI server for WebSockets)
python manage.py runserver- Homepage:
http://localhost:8000 - Admin Panel:
http://localhost:8000/admin/ - API Docs:
http://localhost:8000/api/docs/
smart-queue-management-system/
βββ config/ # Project configuration & settings (base/dev/prod)
βββ apps/ # Django applications
β βββ accounts/ # User authentication & profiles
β βββ branches/ # Branches, departments, services
β βββ queues/ # Queue token management & real-time tracking
β βββ notifications/ # Email/SMS & WebSocket notifications
β βββ feedback/ # User feedback
β βββ reports/ # PDF/Excel reports
β βββ dashboard/ # Admin & staff dashboards
β βββ api/ # REST API (versioned)
β βββ core/ # Shared utilities
βββ templates/ # Global HTML templates
βββ static/ # Static files (CSS, JS, images)
βββ media/ # User uploads
βββ docs/ # Documentation
Solving real-world queue problems in Sri Lanka π±π°