Scapr is a Django based application that fetches exchange rates from ECB and provides access to them in JSON format via REST API.
The easiest way to run Scrapr is with Docker:
- Clone the repo
cd
into it- Run
docker-compose build
- Run
docker-compose run django python manage.py migrate
in order to prepare DB - Run
docker-compose up
to run the application :)
Since there is not much logic in Scraper, the code is organized in a traditional Django-style structure, where everything resolves around model. Scrapr uses Docker, PostgreSQL as primary DB, Celery to run periodic tasks, RabbitMQ as a message broker for Celery.
In order to run tests, follow Running Scrapr
, but instead of the last step, run docker-compose run django python manage.py test
.