This repository contains an implementation of a microservices e-commerce backend with Spring boot.
Spring boot 3, OAuth2(KeyCloak), Eureka, Spring cloud gateway, Kafka, Redis, MySQL, PostgreSQL, Docker.
Spring Boot 3
Maven
Java 17
Docker
- Run
mvn clean package -DskipTeststo build the applications. - Run
docker-compose up -dto start the applications.
Gateway: 8180
Eureka: 8761
Key Cloak: 8080
- Add a line
127.0.0.1 keycloakto the hosts file as administrator
For Windows users, the file is inC:\Windows\System32\drivers\etc;
For Linux and Mac users, the file is in/etc/. - Login to the Key Cloak server at port 8080 with username admin and password petcove.
- Get the client secret in
petcove-microservices-real/Clients/petcove-client/Credentials.
