With the help of this repository you can run microservices using Spring Boot, Spring Cloud, Spring OAuth 2 and Netflix OSS framework.
The application consists of 6 different services
-
This project that mocks an e-commerce API where you can create a customer and orders.
-
The customer can place orders having multiple products in it.
-
This project uses KAFKA broker to communicate between the microservices.
- You can run the project using following steps:
- Install latest version of Docker in your machine.
- Clone this GIT repository.
- Go to directory
spring-boot-microservice
on your system. - Run
docker-compose up --build
and thendocker-compose up
.
-
To create a new customer- http://localhost:8080/v1/api/customer/create :
-
To create a new order- http://localhost:8080/v1/api/order/create :
-
To get the token for secure resource- http://localhost:8080/v1/api/secure/oauth/token :
-
The above end point will produce response like below :
-
To access secure resource or to delete all customers- http://localhost:8080/v1/api/customer/delete/all :