A demo Spring Boot application for money exchange requests
The application requires Docker running on host machine because Testcontainers are used in tests to run Postgres instance. JAVA_HOME must point to a JDK 17 distribution. For example, SDKMAN can be used for Java version management:
sdk install java 17.0.5-librca && sdk use java 17.0.5-librca
To build the application, use gradle task:
./gradlew build
Provide Postgres database credentials via environment variables and run gradle task:
export SPRING_DATASOURCE_URL="jdbc:postgresql://localhost:5432/postgres"
export SPRING_DATASOURCE_USERNAME=dbuser
export SPRING_DATASOURCE_PASSWORD=dbpassword
./gradlew bootRun
The application starts on port 8080. Check Swagger documentation for available API methods