Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.41 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.41 KB

Live Data (Real-time data) in Django using Django Channels

Description

This project shows how to get live data
using Django Channels Rest Framework (DCRF), in Django

Technology Stack

Backend: Django, Django Rest Framework, Django channels, Redis
Frontend: HTML, VueJs

To run the project

Prerequisites: Python3, Redis Server, virutalenv

Plugins Used:

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/

To run the project

  1. Checkout the code
  2. Create a virtual environment (virutalenv .env)
  3. Activate the environment (source .env/bin/activate)
  4. Install all the packages (pip install -r requirements.txt)
  5. Navigate inside the project (cd src)
  6. Migrate (python manage.py migrate)
  7. Create a superuser (python manage.py createsuperuser)
    Fill in all the details on the terminal to create the superuser
  8. Run the backend server (python manage.py runserver)
  9. Visit the server link (http://localhost:8000/)

Video Demo

Part 1: https://youtu.be/GBjuMxg_2jU
Part 2: https://youtu.be/yOfBcXbxUyE