Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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