Skip to content

dieter-medium/microfrontends

Repository files navigation

Spring Boot Projects

This repository contains two Spring Boot applications, each demonstrating different setups and integrations for development and testing environments.

Projects Overview

1. Spring Boot Docker Compose

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.

Prerequisites

  • IntelliJ Ultimate: This repository is best opened with IntelliJ Ultimate for optimal configuration and support.

How to Run

  1. Open the project in IntelliJ Ultimate.
  2. Use the "TeamaApplication" run configuration to start the Docker Compose environment.
  3. A sample page can be displayed via http://127.0.0.1:8080/.

2. Spring Boot Testcontainers

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.

Prerequisites

  • IntelliJ Ultimate: This repository is best opened with IntelliJ Ultimate for optimal configuration and support.

How to Run Tests

  1. Open the project in IntelliJ Ultimate.
  2. Use the persisted run configuration "Run all tests" to execute all tests with Testcontainers.

Environment Variables

Both projects contain a .env.template that can be copied and modified to create your own .env file with the necessary environment variables.

3. Spring Boot Devcontainer

This project demonstrates the use of Devcontainers to set up an optimal development environment for Spring Boot applications.

  • Location: spring-boot-devcontainer

Prerequisites

  • IntelliJ Ultimate: This project is designed to work with IntelliJ Ultimate for an optimized development setup.

How to Use

  1. Open the project in IntelliJ Ultimate.
  2. Right-click on the .devcontainer/devcontainer.json folder and select "Dev Containers >" "Create Dev Containers and mount sources ..".
  3. Use the "TeamaApplication DevContainer" run configuration to start the app.

Environment Variables

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published