Microservices Project Using Spring Boot and Spring Cloud
- Java 17
- Spring Boot 3.1.1
- Spring Cloud 2022.0.3
Spring Cloud Config Server
Create a Git repository and add .properties files for each application you want to configure.
Spring Cloud Config Server
spring.cloud.config.server.git.uri=https://github.com/adiletkdev/config-server-repo
Create databases for each application
# Zipkin server port 9411
$ java -jar zipkin-server-2.24.2-exec.jar
# or run the docker container instead of the jar file
$ docker pull openzipkin/zipkin
$ docker run --rm -it --name zipkin -p 9411:9411 openzipkin/zipkin
# RabbitMQ
# Pull and run container
$ docker pull rabbitmq:3.11.0
$ docker run --rm -it -p 5672:5672 rabbitmq:3.11.0
# Build jar file and start (Multiple instances)
$ cd department-service
$ java -jar -Dserver.port=8082 target/department-service-0.0.1-SNAPSHOT.jar
# Start microservices
1. service-registry
2. config-server
3. api-gateway
4. organization-service
5. department-service
6. employee-service
7. react-frondend