A simple project using Django-channels and WebSocket along with celery and celery-beat to update Cryptocurrency price through Coinmarketcap API.
- Create
.env
file in the project root folder and set these key value pairs inside it:
COIN_MARKET_CAP_API_KEY= Your token from the coinmarketcap panel
ALLOWED_HOSTS=127.0.0.1 localhost 0.0.0.0
DEBUG=1 or 0
SECRET_KEY=some secret key
CELERY_BROKER=redis://redis:6379/2
CELERY_BACKEND=redis://redis:6379/2
POSTGRES_DB=postgres database name
POSTGRES_USER=postgres database username
POSTGRES_PASSWORD=postgres database password
- run it through docker-compose with the following command:
docker-compose up