This repository contains two Spring Boot applications, each demonstrating different setups and integrations for development and testing environments.
This project demonstrates how to set up a Spring Boot application with Docker Compose, featuring MariaDB, Redis, and NGINX for frontend integration. It also highlights the use of Devcontainers for an optimal development environment.
- Location:
spring-boot-docker-compose
- Medium Article: Under Pressure: Spring Boot and Docker Compose
- IntelliJ Ultimate: This repository is best opened with IntelliJ Ultimate for optimal configuration and support.
- Open the project in IntelliJ Ultimate.
- Use the "TeamaApplication" run configuration to start the Docker Compose environment.
- A sample page can be displayed via http://127.0.0.1:8080/.
This project demonstrates how to set up a Spring Boot application with Testcontainers for robust integration testing. It features MariaDB and Redis containers managed by Testcontainers.
- Location:
spring-boot-testcontainer
- Medium Article: Build Me Up Buttercup: Spring Boot and Testcontainers
- IntelliJ Ultimate: This repository is best opened with IntelliJ Ultimate for optimal configuration and support.
- Open the project in IntelliJ Ultimate.
- Use the persisted run configuration "Run all tests" to execute all tests with Testcontainers.
Both projects contain a .env.template
that can be copied and modified to create your own .env
file with the necessary environment variables.
This project demonstrates the use of Devcontainers to set up an optimal development environment for Spring Boot applications.
- Location:
spring-boot-devcontainer
- IntelliJ Ultimate: This project is designed to work with IntelliJ Ultimate for an optimized development setup.
- Open the project in IntelliJ Ultimate.
- Right-click on the .devcontainer/devcontainer.json folder and select "Dev Containers >" "Create Dev Containers and mount sources ..".
- Use the "TeamaApplication DevContainer" run configuration to start the app.
All projects contain a .env.template
that can be copied and modified to create your own .env
file with the necessary environment variables.
For more details, please refer to the respective Medium articles linked above.