How nandan636/e-challan works
E-Challan supports citizen violation and accident reporting, police review, and related community and vehicle-service workflows. The primary flow is a citizen submitting evidence and details, with optional plate recognition, followed by police status decisions and dashboard reporting. The React application and Express API are concentrated in single files; the sampled excerpts support these connections, while some routes and UI wiring are only documented or partially shown.
Main entry points: server.js Express API · App.jsx React app · app.py Plate OCR
Components 16
Web application
- React app
frontend/src/App.jsx - Violation reporting
frontend/src/App.jsx - Police dashboard
frontend/src/App.jsx - Stats and leaderboard
frontend/src/App.jsx - Service requests
frontend/src/App.jsx - Accident reporting
frontend/src/App.jsx
Traffic API
- Express API
backend/server.js - Account handling
backend/server.js - Violation management
backend/server.js - Service request handling
backend/server.js - Accident reports
backend/server.js
Plate recognition
- Plate OCR
ai_service/app.py
Persistent state
- MongoDB
Other components
- Citizen
- Police officer
- Service shop
Connections 22
- Citizen → React app: uses
- Police officer → React app: uses
- Service shop → React app: uses
- React app → Violation reporting: presents
- React app → Police dashboard: presents
- React app → Stats and leaderboard: presents
- React app → Service requests: presents
- React app → Accident reporting: presents
- Violation reporting → Plate OCR: sends image
- Violation reporting → Express API: submits report
- Police dashboard → Express API: requests and updates
- Stats and leaderboard → Express API: requests stats
- Service requests → Express API: manages requests
- Accident reporting → Express API: submits and lists
- Express API → Account handling: dispatches
- Express API → Violation management: dispatches
- Express API → Service request handling: dispatches
- Express API → Accident reports: dispatches
- Account handling → MongoDB: reads and writes
- Violation management → MongoDB: reads and writes
- Service request handling → MongoDB: reads and writes
- Accident reports → MongoDB: reads and writes