Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚦 Smart Traffic Violation System

A full-stack Spring Boot + PostgreSQL application designed to manage and track traffic violations efficiently. Built with a focus on real-world deployment, scalability, and clean backend architecture. image

📌 Live Demo

🌐 Deployed App: 👉 https://smarttraffic-app.onrender.com

🧠 Problem Statement

Manual traffic violation tracking is:

Inefficient ❌ Error-prone ❌ Hard to scale ❌

This system digitizes the process by: Recording violations Storing structured data Enabling fast retrieval and monitoring

⚙️ Tech Stack

Backend Java 21 Spring Boot 4 Spring Data JPA Hibernate Database PostgreSQL (Hosted on Render) DevOps & Deployment Docker Render (Web Service + Managed DB)

Git & GitHub

🚀 Features ✅ Add traffic violations ✅ Store violations in PostgreSQL ✅ REST API architecture ✅ Live cloud deployment ✅ Clean layered structure (Controller → Service → Repository)

📡 API Endpoints (Sample)

Method Endpoint Description GET /api/violations Fetch all violations POST /api/violations Add a new violation

🛠️ Setup & Run Locally

  1. Clone Repository git clone https://github.com/memaitri/TrafficViolationSystem.git cd TrafficViolationSystem
  2. Configure Database

Update application.properties:

spring.datasource.url=YOUR_DB_URL

spring.datasource.username=YOUR_USERNAME

spring.datasource.password=YOUR_PASSWORD

  1. Run Application mvn clean install mvn spring-boot:run

🐳 Docker Support Build Image docker build -t smart-traffic . Run Container docker run -p 8080:8080 smart-traffic

🌍 Deployment Details Hosted on Render PostgreSQL cloud database Environment variables used for security

💡 Future Scope 🚓 Integration with traffic cameras (AI/ML) 📊 Analytics dashboard for violations 📱 Mobile app for real-time reporting 🔐 Role-based access control (Admin / Officer)

About

A full-stack Traffic Violation Management System built with Spring Boot, PostgreSQL, and Docker. Detects overspeeding, calculates fines dynamically, and provides a modern UI dashboard with real-time violation tracking and analytics.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages