Skip to content

This project is about how to uploading images and files in Django, Django Rest Framework, VueJs using AJAX

Notifications You must be signed in to change notification settings

jha-shubham01/live-data-drf-channels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This project is about how to uploading images and files in Django, Django Rest Framework, VueJs using AJAX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published