Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 877 Bytes

readme.md

File metadata and controls

23 lines (22 loc) · 877 Bytes

Cryptocurrency price updater

A simple project using Django-channels and WebSocket along with celery and celery-beat to update Cryptocurrency price through Coinmarketcap API. Screenshot_13-5-2024_1558_localhost

Installation

  • 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