Project to grab APOD images and store it locally in PostgreSQL and provide image to user when it is requested.
Project requirements: https://github.com/justty/golang-units/blob/main/unit-1.md
Before you spin up API and it's infrastructure make sure you have
docker
installedMake
installed
Tips: run
make help
or justmake
to see all available make targets
If you are running the system first time please call below target
make build
make up
cURL samples can be run from command line
Make sure you change the date parameter before sending request
curl -X GET 'http://localhost:8080/image-of-the-day?date=YYYY-mm-dd'
curl -X GET 'http://localhost:8080/images'
[] Low coupling achived by using interfaces. It will help us in feature to cover code with Tests.