In order to use the project you need to have Java 8 installed as well as Maven.
To compile the application
mvn clean package
To run the application
KPI_DATABASE_URL=http://influxdb-url KPI_DATABASE_PASSWORD=password KPI_DATABASE_USERNAME=username mvn spring-boot:runTo dockerize the application
docker build -f ../src/main/deployment/Dockerfile . -t 'assignmentproxy:latest'The image can be found on dockerhub
To run using docker compose
docker-compose -f yapily-assignment-compose.yaml upThen you can use the proxy functionality
curl http://localhost:8080/positions.json?page=0You can monitor the service health status with the following endpoint
curl http://localhost:8080/actuator/health