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

jameshiew/cryptocoin-ticker-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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