This application allows to scrap currencies exchange rates against EUR from European Central Bank RSS. Data is stored in Postgres database and accessible via REST API.
Rates are scrapped on application start and every day on 14:17 (2 minutes after official release).
Postgres, Nginx, Redis, Celery, Django, Django REST Framework
- 20:30-21:30
- 23:00-00:45
- add filtering by dates and currencies
- add reporting errors via email
- add backoff if new results are not present @14:17 CET
####Prerequisites:
- Install docker https://docs.docker.com/install
- Pull repository
- Navigate to folder with repository
make up
to build the project and start containers.- Browse the api on http://127.0.0.1:8000
make build
to build the project.make start
to start containers if project has been up already.make stop
to stop containers.make shell-web
to shell access web container.make shell-db
to shell access db container.make shell-nginx
to shell access nginx container.make logs-web
to log access web container.make logs-db
to log access db container.make logs-nginx
to log access nginx container.make collectstatic
to put static files in static directory.make log-web
to log access web container.make log-db
to log access db container.make log-nginx
to log access nginx container.make restart
to restart containers.