Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Latest commit

History

History
13 lines (10 loc) 路 1015 Bytes

README.md

File metadata and controls

13 lines (10 loc) 路 1015 Bytes

cryptocoin-ticker-tutorial pipeline status

This is the codebase to accompany the cryptocoin ticker tutorial on Medium.com.

Trying it out

  • Run pipenv install --skip-lock to set up an environment with required dependencies
  • Run pipenv shell to activate the environment in your shell
  • Run cd ccticker/, ./manage.py migrate, ./manage.py createsuperuser, ./manage.py runserver
  • Go to http://localhost:8000/admin/django_celery_beat/periodictask/add/ and schedule ccapp.tasks.update_cc_prices to run every ten seconds
  • Run cd ccticker/, celery -A ccticker worker -l info
  • and cd ccticker/, celery -A ccticker beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
  • Go to http://localhost:8000/tickers