Case Study - Foreign Exchange Example (Spring Boot, Java 21, Docker, Maven, JUnit Test, Integration Test, In-Memory Database (H2 Database), Github Actions, Spring Open Api, Mapstruct, Spring Cache, Resillience4j (Rate Limiter))
Endpoints Summary
Import postman collection under postman_collection folder
EXCHANGE_API_API_KEY={EXCHANGE_API_API_KEY}
http://localhost:1331/swagger-ui/index.html
The application can be built and run by the Docker
engine. The Dockerfile
has multistage build, so you do not need to build and run separately.
Please follow directions shown below in order to build and run the application with Docker Compose file;
$ cd foreignexchangeexample
$ docker-compose up -d
If you change anything in the project and run it on Docker, you can also use this command shown below
$ cd foreignexchangeexample
$ docker-compose up --build
To build and run the application with Maven
, please follow the directions shown below;
$ cd foreignexchangeexample
$ mvn clean install
$ mvn spring-boot:run
https://hub.docker.com/repository/docker/noyandocker/foreignexchangeexample/general