Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neimat1/reactive-company
https://github.com/neimat1/reactive-company
data-access junit mutiny quarkus reactive-programming rest-assured rest-client
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/neimat1/reactive-company
- Owner: Neimat1
- Created: 2024-09-29T23:52:22.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T22:14:08.000Z (3 months ago)
- Last Synced: 2024-10-27T02:08:26.865Z (3 months ago)
- Topics: data-access, junit, mutiny, quarkus, reactive-programming, rest-assured, rest-client
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reactive-company
This project is consisting of 2 microservices:
1. ### **service-one**:
_Microservice, that does:_
* Get All Employees - GET
* Add new Employee - POST
* Update Employee's position - PUT
* Remove Employee - DELETE
_UML Diagram:_```mermaid
classDiagram
class Employee {
- name: string
- position: string
- department: Department
- id: Long
}
class Department {
- departmentName: string
- id: Long
}
Department "1" --> "*" Employee
```2. ### **service-two**:
_Microservice, that consumes service-one:_
* Get All Employees - GET
* Add new Employee - POST
* Update Employee's position - PUT
* Remove Employee - DELETE### To Run the project
* 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 .
> * or generate Openapi by .
> * Run postman collection service-one> **_NOTE: Service-Two_**
> * Now you can open Swagger-Ui by .
> * Or generate Openapi by .
> * Run postman collection service-two### Versions:
* java-11
* Apache Maven 3.9.3
* Postgresql
* Docker Engine - Mandatory
* Quarkus 3.2.12.FINAL