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.
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.
MIT Free Software, Hell Yeah!