A full-stack web application for reporting and managing traffic violations with real-time evidence submission, geolocation tracking, and admin-side monitoring. The system bridges the gap between citizens and law enforcement, enabling transparent, efficient reporting of traffic offenses.
- π User Reporting: Submit traffic violation reports with photo evidence and location.
- π Real-time Geolocation: Automatically capture user's location using the Geolocation API.
- π· Secure Image Uploads: Upload image evidence securely using Firebase Storage.
- π Authentication: Firebase-based auth for users and admin roles.
- π§Ύ Admin Dashboard: Review, approve, and manage reports with plate evidence.
- π (Optional) Plate Detection: Integration-ready for automated license plate recognition.
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express.js
- Database & Storage: Firebase (Authentication, Firestore, Storage)
- APIs: Geolocation API, Firebase SDK
- Tools: Git, GitHub, Postman
π Getting Started
π§ Prerequisites Make sure you have the following installed: Node.js Firebase CLI Git
π» Run Locally
git clone https://github.com/nirjara-29/traffic-violation.git cd traffic-violation
cd backend npm install node server.js
Open frontend In your browser, open the index.html file located in the /frontend directory