SmartDispatch is a full-stack web application designed to optimize public resource allocation using Operating System scheduling concepts. It simulates real-world dispatch systems (like police/fire services) with role-based access, dynamic resource management, and algorithm-driven task assignment.
๐ Live Demo: https://smart-dispatch-o7y0mkzja-rutujagharat-11s-projects.vercel.app/
Efficient allocation of limited public resources (e.g., emergency services) is a critical challenge. Traditional systems may suffer from delays, unfair prioritization, or resource starvation.
SmartDispatch solves this by:
- Applying scheduling algorithms
- Ensuring fair resource distribution
- Minimizing request wait times
- ๐ Role-based authentication (User / Admin)
- ๐ Request submission & tracking system
- ๐ Admin dashboard for monitoring requests
- ๐ Resource management (Available / Unavailable)
- โ๏ธ Algorithm-driven scheduling system
- ๐ Anti-starvation mechanism for fairness
- ๐ Full-stack deployment (Vercel + Render)
The core of this system is a scheduler inspired by Operating System concepts:
- Priority-based scheduling
- Anti-starvation handling
- Dynamic task-resource assignment
- Reduce waiting time
- Ensure fairness across requests
- Efficient utilization of resources
Frontend (Next.js)
โ
API Layer (Flask)
โ
Scheduler Module
โ
SQLite Database
- Next.js (App Router)
- React
- TypeScript
- Tailwind CSS
- Flask
- SQLite
- Flask-CORS
- Werkzeug (password hashing)
- Vercel (Frontend)
- Render (Backend)
SmartDispatch/
โ
โโโ app/ # Next.js frontend pages
โโโ components/ # UI components
โโโ scheduler/ # Scheduling logic
โโโ app.py # Flask backend entry
โโโ auth.py # Authentication logic
โโโ database.py # DB operations
โโโ schema.sql # Database schema
โโโ smartdispatch.db # SQLite database
- Create account
- Login
- Submit service requests
- Track request status
- Login to admin dashboard
- View all requests
- Manage resource availability
- Run scheduling system
python -m venv .venv
.venv\Scripts\activate # (Windows)
pip install flask flask-cors werkzeug
python app.pyBackend runs at:
http://localhost:5000
npm install
npm run devFrontend runs at:
http://localhost:3000
- Session-based authentication using Flask sessions
API endpoints:
- POST /api/login
- GET /api/check-auth
- POST /api/logout
| Endpoint | Method | Description |
|---|---|---|
| /api/login | POST | User/Admin login |
| /api/logout | POST | Logout |
| /api/requests | GET | Fetch requests |
| /api/schedule | POST | Run scheduler |
- Built a full-stack resource dispatch system using Next.js and Flask
- Implemented OS-based scheduling algorithms with anti-starvation logic
- Designed role-based authentication and admin control panel
- Deployed scalable application using Vercel and Render
- ๐ค AI-based demand prediction
- ๐ Real-time location tracking (Maps integration)
- โก WebSocket-based live updates
- ๐ Advanced analytics dashboard
This project demonstrates how core Operating System concepts can be applied to solve real-world problems in resource management and dispatch systems.


