Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.53 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.53 KB

Shopping Application

Architecture:

Alt text

There are three microservices:

  • Orders : This microservice is responsible for managing orders.
  • Catalog : This microservice is responsible for managing catalog.
  • Reports : This microservice is responsible for managing reports.

EndPoints

Service EndPoint Port Method Description
Orders /api/v1/orders 8080 GET Return order's list
Orders /api/v1/orders 8080 POST Processing order
Reports /api/v1/reports 8082 GET Returns order's report

Documentation and examples

###Swagger

###Postman collection

Alt text

Build & Run

  • >mvn clean package : to build
  • >docker-compose up --build : build docker images and containers and run containers
  • >docker-compose stop : stop the dockerized services
  • Each maven module has a Dockerfile.

In docker-compose.yml file:

  • Orders Service : 8080 port is mapped to 8080 port of host
  • Report Service : 8082 port is mapped to 8082 port of host

VERSIONS

1.0.0

  • Spring-Boot 2.6.6
  • Spring Cloud Sleuth
  • Spring Boot Admin
  • Splunk
  • Java 17