Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aenesgur/springboot-microservice-boilerplate
Microservice boilerplate application developed with Spring Boot, Spring Cloud, Discovery Server(Eureka), Circuit Breaker Resilience4j, Apache Kafka, Sql/NoSql, Docker
https://github.com/aenesgur/springboot-microservice-boilerplate
discovery-server docker docker-compose microservice mongodb mysql postgresql resilience4j spring-boot spring-cloud spring-cloud-gateway spring-cloud-loadbalancer
Last synced: 9 days ago
JSON representation
Microservice boilerplate application developed with Spring Boot, Spring Cloud, Discovery Server(Eureka), Circuit Breaker Resilience4j, Apache Kafka, Sql/NoSql, Docker
- Host: GitHub
- URL: https://github.com/aenesgur/springboot-microservice-boilerplate
- Owner: aenesgur
- Created: 2022-10-25T11:41:30.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-30T20:36:55.000Z (about 2 years ago)
- Last Synced: 2023-03-06T20:52:22.614Z (over 1 year ago)
- Topics: discovery-server, docker, docker-compose, microservice, mongodb, mysql, postgresql, resilience4j, spring-boot, spring-cloud, spring-cloud-gateway, spring-cloud-loadbalancer
- Language: Java
- Homepage:
- Size: 115 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# springboot-microservice-boilerplate
Microservice boilerplate application developed with Spring Boot
### Technologies
* Spring Boot
* Spring Data
* Spring Cloud
* Spring Cloud Gateway
* Discovery Server ( Netflix Eureka Server )
* Apache Kafka / Zookeeper / Kafdrop
* Load Balancer
* Circuit Breaker ( resilience4j )
* MongoDB / Postgresql / Mysql
* Docker / Docker Compose### Diagram
### Setup
* Enter folder path
* Run commands orderly:```sh
mvn clean install
``````sh
docker-compose up -d
```### Postman Collection
* Postman collection: /Microservice_App.postman_collection
* Postman environment: /Microservice_App_Env.postman_environment### Pages and Rest APIs
* Spring Eureka: http://localhost:8761/
* Kafdrop (Visualize the Apache Kafka): http://localhost:9000/| Route | HTTP Verb | POST body | Description |
|----------------------------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|
| http://localhost:8080/api/products | `GET` | | Get all products. |
| http://localhost:8080/api/products/{id}| `GET` | | Get product by id. |
| http://localhost:8080/api/products | `POST` | { "name": "product-1", "price": 2750.50, "inStock": true, "stockCount": 100 } | Create a new product. |
| http://localhost:8080/api/orders | `POST` | { "orderItemDtoList":[ { "ref": "abb8087b-9b84-4a61-a260-6faabcb97c98", "price": 5500, "quantity": 34 }, { "ref": "abb8087b-9b84-4a61-a260-6faabcb97123", "price": 5500, "quantity": 34 } ] } | Create a new order. |