* Spring Cloud
* Eureka Descovery
* H2DataBase
* BloomRPC
1. Clone this repo
git clon <!--links of repo-->
2. Install all the dependencies
npm install
3. run all services (after install maven dependencies in intellijIDE)
4. run front project
ng serve
Registration | Radar | Violation | Gateway | Eureka |
---|---|---|---|---|
There are five services in all, as stated in the project schema. Every one has a building plan.
The micro-registration service that allows the management of vehicles belonging to the
and owners. Each vehicle belongs to one owner. A owner is defined by his id, name, date of birth, email and email.
A vehicle is defined by its ID, registration number, brand, tax power and model.
├───src
│ ├───main
│ │ ├───java
│ │ │ └───dev
│ │ │ └───elma
│ │ │ └───immatriculation_ms
│ │ │ ├───entities
│ │ │ ├───projections
│ │ │ ├───repositories
│ │ │ └───web
│ │ └───resources
│ └───test
│ └───java
│ └───dev
│ └───elma
│ └───immatriculation_ms
└───target
├───classes
│ └───dev
│ └───elma
│ └───immatriculation_ms
│ ├───entities
│ ├───projections
│ ├───repositories
│ └───web
└───generated-sources
└───annotations
the radar management microservice The ID of a radar identifies it.
Latitude and Longitude are the coordinates and maximum speed
├───src
│ ├───main
│ │ ├───java
│ │ │ └───dev
│ │ │ └───elma
│ │ │ └───radar_ms
│ │ │ ├───entities
│ │ │ ├───feign
│ │ │ ├───models
│ │ │ ├───repositories
│ │ │ └───web
│ │ └───resources
│ └───test
│ └───java
│ └───dev
│ └───elma
│ └───radar_ms
└───target
├───classes
│ └───dev
│ └───elma
│ └───radar_ms
│ ├───entities
│ ├───feign
│ ├───models
│ ├───repositories
│ └───web
├───generated-sources
│ └───annotations
└───maven-status
└───maven-compiler-plugin
└───compile
└───default-compile
The micro-service that helps to deal with infringements. Each offence is defined by its ID, its date,
the radar number that detected the exceeding, vehicle registration, vehicle speed,maximum radar speed
and the amount of the infringement.
├───src
│ ├───main
│ │ ├───java
│ │ │ └───dev
│ │ │ └───elma
│ │ │ └───infractin_ms
│ │ │ ├───entities
│ │ │ ├───feignApi
│ │ │ ├───models
│ │ │ ├───repositories
│ │ │ └───web
│ │ └───resources
│ └───test
│ └───java
│ └───dev
│ └───elma
│ └───infractin_ms
└───target
├───classes
│ └───dev
│ └───elma
│ └───infractin_ms
│ ├───entities
│ ├───feignApi
│ ├───models
│ ├───repositories
│ └───web
├───generated-sources
│ └───annotations
├───generated-test-sources
│ └───test-annotations
└───test-classes
└───dev
└───elma
└───infractin_ms
API gateway is a software application between a client and a set of backend microservices.
The API Gateway serves as a reverse proxy to accept API calls from the client application, forwarding this traffic to the appropriate servic
├───src
│ ├───main
│ │ ├───java
│ │ │ └───dev
│ │ │ └───elma
│ │ │ └───gateway_ms
│ │ └───resources
│ └───test
│ └───java
│ └───dev
│ └───elma
│ └───gateway_ms
└───target
├───classes
│ └───dev
│ └───elma
│ └───gateway_ms
└───generated-sources
└───annotations
The Eureka server is nothing but an implementation of service discovery pattern, where microservices can register themselves so others can discover them.
This server holds information about the client service applications.
├───src
│ ├───main
│ │ ├───java
│ │ │ └───dev
│ │ │ └───elma
│ │ │ └───eureka_discovery_ms
│ │ └───resources
│ └───test
│ └───java
│ └───dev
│ └───elma
│ └───eureka_discovery_ms
└───target
├───classes
│ └───dev
│ └───elma
│ └───eureka_discovery_ms
└───generated-sources
└───annotations
Eureka Discovery |
---|
Registration WS | Radars WS | Volation WS |
---|---|---|
a java application that simulates a radar that randomly generates
speed excesses and send them, via GRPC, to Radar-Service
├───src
│ ├───main
│ │ ├───java
│ │ │ └───dev
│ │ │ └───elma
│ │ │ └───radarsimulation
│ │ │ ├───configuration
│ │ │ ├───dtos
│ │ │ └───services
│ │ └───resources
│ │ ├───static
│ │ └───templates
│ └───test
│ └───java
│ └───dev
│ └───elma
│ └───radarsimulation
└───target
├───classes
│ └───dev
│ └───elma
│ └───radarsimulation
│ ├───configuration
│ ├───dtos
│ └───services
└───generated-sources
└───annotations
Authentication Page | Home Page |
---|---|
Registration Page | Radars Page |
---|---|
Violations Page |
---|