This project is consisting of 2 microservices:
-
Microservice, that does:
- Get All Employees - GET
- Add new Employee - POST
- Update Employee's position - PUT
- Remove Employee - DELETE
UML Diagram:
classDiagram class Employee { - name: string - position: string - department: Department - id: Long } class Department { - departmentName: string - id: Long } Department "1" --> "*" Employee
-
Microservice, that consumes service-one:
- Get All Employees - GET
- Add new Employee - POST
- Update Employee's position - PUT
- Remove Employee - DELETE
- Run Docker Engine
- clone the repo
- Once you are in the project repo
- Open the terminal then write the commands
- cd .\rest-client\
- ./mvnw compile quarkus:dev
- Open another terminal page to run service-one
- cd .\company\
- ./mvnw compile quarkus:dev
- Now you have
- Rest-Client (Service-two) running on 8090
- Company (Service-one) running on 8080
NOTE
- you can use postman collection / http requests in each repo
- There's a Readme file for each service
NOTE: Service-one
- now you can open Swagger-Ui by http://localhost:8080/q/swagger-ui/.
- or generate Openapi by http://localhost:8080/q/openapi/.
- Run postman collection service-one
NOTE: Service-Two
- Now you can open Swagger-Ui by http://localhost:8090/q/swagger-ui/.
- Or generate Openapi by http://localhost:8090/q/openapi/.
- Run postman collection service-two
- java-11
- Apache Maven 3.9.3
- Postgresql
- Docker Engine - Mandatory
- Quarkus 3.2.12.FINAL