Skip to content

A simple Django project to display live price of cryptocurrencies using channels and coin market cap API

License

Notifications You must be signed in to change notification settings

farshadz1997/cryptocurrency-live-price

Repository files navigation

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

About

A simple Django project to display live price of cryptocurrencies using channels and coin market cap API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published