RoadSOS is a production-ready React + Vite hackathon MVP for AI-assisted ambulance dispatch decisions during Indian road emergencies.
- Mock AI triage with 1.0–1.5 sec loading simulation (no external AI/API calls)
- Incident panel with caller details and triage reasoning
- Sorted ambulance fleet with ETA calculation via haversine distance
- One-click best ALS dispatch with visual confirmation banner
- Dark themed Leaflet map with incident pulse marker and route polyline
- Fully frontend-only; deployable to Vercel and Netlify as static site
- React 18
- Vite
- JavaScript
- Leaflet + React Leaflet
- Lucide React
- Plain CSS
git clone <your-repo-url>
cd roadsos
npm install
npm run devOpen the local URL printed by Vite (usually http://localhost:5173).
npm run build
npm run preview- Push this repo to GitHub.
- In Vercel, click New Project and import the repo.
- Framework preset: Vite (auto-detected).
- Build command:
npm run build - Output directory:
dist - Deploy.
- Push repo to GitHub.
- In Netlify, click Add new site → Import from Git.
- Build command:
npm run build - Publish directory:
dist - Deploy site.
- No backend, auth, DB, or server routes used.
- All data is hardcoded in
src/data/mockData.js. - All triage behavior is deterministic mock logic in
src/hooks/useTriage.js.