| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Example of a microservices using Spring Cloud, Spring Boot, Docker, Mysql, MongoDB, RabbitMQ, Keycloak, Spring WebFlux, Resilience4J
6 services whose name are shown below have been devised in this project:
| HTTP Verb | API | Description | Request Body | Response Body |
|---|---|---|---|---|
| POST | /api/customer | Create a new customer | CustemerDto | Customer |
| POST | /api/order | Create a new order | OrderDto | |
| GET | /api/getOrders | Get all orders by customer | CustomerDto | List of orders |
| POST | /api/product | Add a new product to warehouse | ProductRequest | ProductResponse |
| GET | /api/product | Get all products from warehouse | None | ProductResponse |
| GET | /api/product/inventory | Check your product in warehouse | String | InventoryResponse |
| POST | /api/notification/email | Send email | NotificationDto | None |
Maven:
1 ) Start Keycloak and Rabbit through Docker
2 ) Implement their settings
3 ) Download your project from this link: https://github.com/MaximRom00/Microservices-example
4 ) Go to the project's home directory
5 ) Create a jar file though this command: mvn clean install
6 ) Run the project though this command: mvn spring-boot:run
Docker
1 ) Open Docker Desktop or Docker Desktop (if you use Windows 7/8).
2 ) Open terminal and start all containers
docker-compose up
3 ) Keycloak
1 ) Open Keycloak on the Browser through localhost:8080 (or http://192.168.99.100:8080 - if you use docker tolbox)
2 ) Enter username and password (admin : admin)
3 ) After you login, you need to setup a Realm and Client (https://www.keycloak.org/docs/latest/server_admin/index.html#admin-console)
4 ) RabbitMQ
1 ) Open Rabbitmq on the Browser through http://localhost:15672 (or http://192.168.99.100:15672 - if you use docker tolbox)
2 ) Enter username and password (user : password)
5 ) Stops containers
docker-compose down
| Back | FazBrowse Home | New Git URL |