Skip to content

Alirale/Traffic_Control_Application

Repository files navigation

Attribute Details
ORM EF Core
DataBase SQL Server
Architecture Clean
Auth system JWT
Containerized Using Docker
Service Oriented & DTO Based



This repository contains a dockerized application that simulates a traffic-control system using EFCore. For this sample, I've used a speeding-camera setup as can be found on several highways. A set of cameras are placed at several places on the highway. Using speed data detected by SpeedCameras, Cars get tickets whenever their speed reaches more than the max allowed speed of that highway.


to use this application every one should register (name , password and role Id (1-> citizen / 2->polices / 3-> Admins)) and get jwt bearer token,then there is accessibility for this roles :

1) everyone has access to account controller.

2) citizens can figure out if their car has any tickets(PersonCar Controller).

3) polices Have access to ticket Controller , CarRegisteration Controller ,TicketsList Controller and PersonCar Controller.

4) Admins have access to All of the controllers.



If you want to start simulation process , chanage the RunBackgroundTask value in Appsetting.json File to "True"!


Database Diagram:

Database Diagram



Swager view of API:


swager

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors