- Clone repository
$ git clone https://github.com/abdellatifLabr/ftx-data-scraper
- Install dependencies
- Install redis
- Install postgresql (create database with name
ftx
) - Install pipenv
$ pip install pipenv
- Set up environment
$ pipenv --three
- Install packages
$ pipenv install --dev
- Configure th database
set database settings in
ftx_data_scraper/.env
aspostgres://<username>:<password>@localhost/<database_name>
. - Migrate
- Create
.env
file similar to.example.env
$ python manage.py migrate
- Start redis server (
redis-server
command) - Start project server
$ daphne ftx_data_scraper.asgi:application
- Start celery worker
$ celery worker -A ftx_data_scraper -l INFO
- Start celery beat
$ celery beat -A ftx_data_scraper -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler