https://github.com/aemloviji/apod-img-store
Project to grab APOD images and store it locally in PostgreSQL and provide image to user when it is requested
https://github.com/aemloviji/apod-img-store
apod docker docker-compose go postgresql test-task
Last synced: 4 months ago
JSON representation
Project to grab APOD images and store it locally in PostgreSQL and provide image to user when it is requested
- Host: GitHub
- URL: https://github.com/aemloviji/apod-img-store
- Owner: aemloviji
- Created: 2022-07-27T08:11:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-28T16:39:01.000Z (almost 4 years ago)
- Last Synced: 2023-03-11T01:27:46.972Z (about 3 years ago)
- Topics: apod, docker, docker-compose, go, postgresql, test-task
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apod-img-store
Project to grab APOD images and store it locally in PostgreSQL and provide image to user when it is requested.
> Project requirements:
## Requirements
Before you spin up API and it's infrastructure make sure you have
- `docker` installed
- `Make` installed
## How to run
> Tips: run `make help` or just `make` to see all available make targets
### Only once
_If you are running the system first time please call below target_
```sh
make build
```
### To spin-up API and Postgresql
```sh
make up
```
## Request samples
cURL samples can be run from command line
### /image-of-the-day
> Make sure you change the date parameter before sending request
```sh
curl -X GET 'http://localhost:8080/image-of-the-day?date=YYYY-mm-dd'
```
### /images
```sh
curl -X GET 'http://localhost:8080/images'
```
## TODO
[] Low coupling achived by using interfaces. It will help us in feature to cover code with Tests.