Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
blaz-cerpnjak committed Mar 19, 2024
2 parents def0367 + d07451e commit cb84d5f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 7.0.6

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
Expand Down
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
## Overview
This project serves as an example of food ordering system using a microservice approach.

## UserManagementAPI
Simple microservice for managing users, built using Spring Boot and Kotlin.
## User Management API [REST]
Simple REST API for managing users, built using Spring Boot and Kotlin.

### How to run

Expand All @@ -16,7 +16,7 @@ Simple microservice for managing users, built using Spring Boot and Kotlin.
~$ docker-compose up
```

UserManagementAPI will be avaiable on ```localhost:8080/api/v1```. Access Swagger ```http://localhost:8080/api/v1/swagger-ui/index.html```.
User Management API will be avaiable on ```localhost:8080/api/v1```. Access Swagger ```http://localhost:8080/api/v1/swagger-ui/index.html```.

### Unit Tests
Before running unit tests, ensure that you have a local MongoDB instance running on ```localhost:27017```.
Expand All @@ -27,3 +27,31 @@ Before running unit tests, ensure that you have a local MongoDB instance running
- GET /api/v1/users/{id}
- PUT /api/v1/users/{id}
- DELETE /api/v1/users/{id}

## Order Processing API [gRPC]
Simple gRPC API for managing users, built using Quarkus and Kotlin.

### How to run

```console
~$ cd OrderProcessingAPI
~$ docker-compose up
```

Order Processing gRPC API will be avaiable on ```grpc://localhost:9000```.

### Unit Tests
Before running unit tests, ensure that you have a local MongoDB instance running on ```localhost:27017```.

### Available gRPC Methods
```
service OrderService {
rpc CreateOrder (Order) returns (Confirmation) {}
rpc GetOrder (GetOrderRequest) returns (Order) {}
rpc UpdateOrder (Order) returns (Confirmation) {}
rpc GetOrdersBySeller (GetOrdersRequest) returns (stream Order) {}
rpc GetOrdersByDeliveryPerson (GetOrdersRequest) returns (stream Order) {}
rpc DeleteOrder (DeleteOrderRequest) returns (Confirmation) {}
rpc Health (Empty) returns (Confirmation) {}
}
```

0 comments on commit cb84d5f

Please sign in to comment.