spring-microservices-blueprint
Java Spring Boot microservices stack (PostgreSQL, Kafka, Elasticsearch, Kibana, Fluentd, JWT Auth, Swagger) — easily build & run all services in two commands.
File Explorer
Download Latest Version (.zip)- maven-wrapper.properties
- maven-wrapper.jar
- maven-wrapper.properties
- DataInitializer.java
- OpenApiConfig.java
- AuthController.java
- HomeController.java
- ProductEventController.java
- TestController.java
- UserController.java
- ProductEvent.java
- User.java
- ERole.java
- EventType.java
- KafkaConfig.java
- KafkaUserConsumer.java
- ProductEventConsumer.java
- Role.java
- User.java
- LoginRequest.java
- SignupRequest.java
- UpdateRequest.java
- JwtResponse.java
- MessageResponse.java
- UserProfile.java
- RoleRepository.java
- UserRepository.java
- UserDetailsImpl.java
- UserDetailsServiceImpl.java
- WebSecurityConfig.java
- AuthService.java
- UserService.java
- AccountServiceApplication.java
- home.html
- application.yml
- logback-spring.xml
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- CommonOpenFeignConfig.java
- CommonOpenFeignErrorDecoder.java
- CommonContext.java
- CommonContextTaskDecorator.java
- DefaultCommonContext.java
- README.md
- ThreadAsyncConfig.java
- CorrelationConstants.java
- CommonContextHolder.java
- CommonExceptionHandler.java
- ApiError.java
- ErrorCode.java
- ApplicationException.java
- FeignResponseException.java
- ForbiddenException.java
- FormValidateException.java
- HttpException.java
- NotFoundException.java
- UnauthorizedException.java
- UnprocessableEntityException.java
- KafkaProducerInterceptor.java
- KafkaRecordInterceptor.java
- CommonRequestBodyLogger.java
- CommonResponseBodyLogger.java
- CorrelationLoggingFilter.java
- OpenFeignRequestInterceptor.java
- AuthEntryPointJwt.java
- AuthTokenFilter.java
- JwtUtils.java
- CORSFilter.java
- WebConfiguration.java
- AsyncExampleService.java
- AsyncUtils.java
- AuthUtils.java
- CorrelationUtils.java
- StringToDateConverter.java
- pom.xml
- 01-Quick-Setup.md
- 02-System-Architecture.md
- 03-API-Reference.md
- 04-Development-Guide.md
- 05-Testing-Guide.md
- 06-Debugging-Guide.md
- 07-Docker-Operations.md
- 08-Monitoring-Logging.md
- 09-Troubleshooting.md
- 10-Postman-Collection.md
- 11-Configuration-Reference.md
- fluent.conf
- Dockerfile
- maven-wrapper.jar
- maven-wrapper.properties
- ProductAop.java
- OpenApiConfig.java
- AsyncTestController.java
- HomeController.java
- ProductController.java
- UserController.java
- ProductEvent.java
- ProductRequest.java
- ProductSearchRequest.java
- ProductUpdateRequest.java
- User.java
- EventType.java
- UserFeignClient.java
- KafkaConfig.java
- ProductKafkaProducer.java
- UserKafkaProducer.java
- Product.java
- ProductRepo.java
- CustomAccessDeniedHandler.java
- CustomAuthenticationEntryPoint.java
- WebSecurityConfig.java
- ProductService.java
- ProductServiceApplication.java
- application.yml
- logback-spring.xml
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- .gitignore
- docker-compose.yml
- Docker_guid.md
- e2e.sh
- mvnw
- mvnw.cmd
- pom.xml
- README.md
- spring microservices.postman_collection.json
# Installation Guide
git clone https://github.com/cuongnh28/spring-microservices-blueprint
Downloads the entire project code from GitHub to your computer.
cd spring-microservices-blueprint
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker --version # Should show Docker 20.10+
Type this command into your terminal and run it.
docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
docker compose ps
Runs the command against the services defined in the compose file.
docker compose build
Runs the command against the services defined in the compose file.
docker compose up -d
Builds and starts all defined containers (server, database, etc.) at once, in the background.
Pulled directly from this repo's README.
3. Maven (Java)
Medium- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java projects.
- Maven The build tool used for the mvn command.
mvn -version # Should show Maven 3.9+
Installs dependencies and builds the project using Maven.
mvn clean install -DskipTests
Installs dependencies and builds the project using Maven.
docker compose down -v && mvn clean install -DskipTests && docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
mvn dependency:purge-local-repository
Installs dependencies and builds the project using Maven.
Pulled directly from this repo's README.
