Skip to content

A Live Chat application built using Django and Vue.js. It uses Django's Channels which allows us to handle WebSocket protocol. In the frontend layer Vue.js uses WebSocket API to establish two-sided connection with the server.

License

Notifications You must be signed in to change notification settings

ikushum/Django-Vue-Chat-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Vue Live Chat

A Live Chat application built using Django and Vue.js. It uses Django's Channels which allows us to handle WebSocket protocol. In the frontend layer Vue.js uses WebSocket API to establish two-sided connection with the server. Users can create a chat room and invite multiple users to the chat room by sharing the room's URL.

Installation

Make sure to have python3, pip3 and redis installed properely on your machine.

Install dependencies using

$ pip3 install -r requirements.txt

Start a redis server on port 6379

$ echo "port 6379" | redis-server -

Apply migrations

$ python3 manage.py migrate

For starting local dev server

$ python3 manage.py runserver

Also make sure to create new users from the console :

user@host> python manage.py shell
>>> from django.contrib.auth.models import User
>>> user=User.objects.create_user('foo', password='bar')
>>> user.save()

Finally navigate to /chat to create a new chat room.

License

MIT Free Software, Hell Yeah!

About

A Live Chat application built using Django and Vue.js. It uses Django's Channels which allows us to handle WebSocket protocol. In the frontend layer Vue.js uses WebSocket API to establish two-sided connection with the server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published