This project shows how to get live data
using Django Channels Rest Framework (DCRF), in Django
Backend: Django, Django Rest Framework, Django channels, Redis
Frontend: HTML, VueJs
Prerequisites: Python3, Redis Server, virutalenv
Django: https://docs.djangoproject.com/en/4.0/topics/install/#installing-official-release
DRF: https://www.django-rest-framework.org/
Redis: https://redis.io/docs/getting-started/installation/install-redis-on-linux/
Django Channels: https://channels.readthedocs.io/en/stable/index.html
DRF Channels: https://djangochannelsrestframework.readthedocs.io/en/latest/
Redis-Server: https://pypi.org/project/redis-server/
- Checkout the code
- Create a virtual environment (virutalenv .env)
- Activate the environment (source .env/bin/activate)
- Install all the packages (pip install -r requirements.txt)
- Navigate inside the project (cd src)
- Migrate (python manage.py migrate)
- Create a superuser (python manage.py createsuperuser)
Fill in all the details on the terminal to create the superuser - Run the backend server (python manage.py runserver)
- Visit the server link (http://localhost:8000/)
Part 1: https://youtu.be/GBjuMxg_2jU
Part 2: https://youtu.be/yOfBcXbxUyE