This app randomly shows 1 our of 15 Duck images. A Prometheus endpoint is enabled.
The images are taken from this API:
To start the app run
docker-compose up
If you get an error, try
docker-compose up --build
and use this URL to access it in the browser
http://localhost:8080
The two underlying APIs are
- POST localhost:8080/api/fetch-random
- GET localhost:8080/api/latest
The Prometheus Endpoint is http://localhost:8080/actuator/prometheus
The app was build using
- Springboot
- In-memory H2 database
- Thymeleaf
- Lombok
Todo:
- Automated Test