Build a production-ready web + mobile compatible application called "Smart Ambulance System".
GOAL:
Create a real-time ambulance booking and intelligent traffic clearance system that reduces emergency response time using live tracking and AI-based signal control.
--------------------------------------
CORE FEATURES:
1. USER SIDE:
- Login/Signup (JWT आधारित authentication)
- Live map (Leaflet.js or Google Maps)
- Show:
- User location
- Nearby hospitals
- Available ambulances
- "Book Ambulance" button
2. AMBULANCE TRACKING:
- Assign nearest ambulance automatically
- Show real-time movement of ambulance on map
- Use WebSockets for live updates
3. SMART TRAFFIC CLEARANCE SYSTEM:
Implement 3-Level Intelligent Clearance:
LEVEL 1 (1000 meters away):
- Identify signals in route
- Turn signals green sequentially
LEVEL 2 (500 meters away):
- Override nearby traffic lights
- Sync adjacent signals to prevent congestion
LEVEL 3 (50 meters away):
- Full priority mode
- All signals green in ambulance path
- Other lanes blocked
- Simulate traffic signals using backend logic (Node.js)
- Store signal data and states in database
4. ROUTE OPTIMIZATION:
- Calculate fastest route using traffic data
- Re-route dynamically if congestion occurs
5. HOSPITAL INTEGRATION:
- Notify hospital when ambulance is booked
- Send ETA and patient details
6. ADMIN DASHBOARD:
- Monitor all ambulances
- Control traffic signals manually if needed
- View analytics (response time, distance, usage)
--------------------------------------
TECH STACK:
Frontend:
- React.js (with Tailwind CSS)
- Map integration (Leaflet.js)
Backend:
- Node.js + Express.js
Database:
- MongoDB
Real-time:
- WebSockets (Socket.io)
Deployment:
- Dockerized services
- CI/CD pipeline
--------------------------------------
ADVANCED FEATURES:
- AI module to predict traffic congestion based on time/history
- Priority scoring system for multiple ambulances
- Emergency escalation mode
--------------------------------------
OUTPUT REQUIREMENTS:
- Complete frontend + backend code
- Folder structure
- API documentation
- Database schema
- Docker setup
- Deployment guide
- Test cases
--------------------------------------
UI REQUIREMENTS:
- Modern glassmorphism UI
- Real-time map dashboard
- Animated ambulance movement
- Status indicators (En route, Arrived, Completed)
--------------------------------------
DELIVERABLE:
A fully working, deployable MVP that can be run locally and scaled to production.
No comments yet. Be the first!