Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 663 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 663 Bytes

Random Image Viewer

This app randomly shows 1 our of 15 Duck images. A Prometheus endpoint is enabled.

The images are taken from this API:

Random-d.uk

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