Skip to content

Microservice boilerplate application developed with Spring Boot, Spring Cloud, Discovery Server(Eureka), Circuit Breaker Resilience4j, Apache Kafka, Sql/NoSql, Docker

Notifications You must be signed in to change notification settings

aenesgur/springboot-microservice-boilerplate

Repository files navigation

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

microservice diagram ss

Setup

  • Enter folder path
  • Run commands orderly:
mvn clean install
docker-compose up -d

Postman Collection

  • Postman collection: /Microservice_App.postman_collection
  • Postman environment: /Microservice_App_Env.postman_environment

Pages and Rest APIs

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.

About

Microservice boilerplate application developed with Spring Boot, Spring Cloud, Discovery Server(Eureka), Circuit Breaker Resilience4j, Apache Kafka, Sql/NoSql, Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published