nicodev-git / chat-server

Simple chat server with django, postgres, channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Simple chat server with django, postgres, channels

License:MIT License


Languages

Language:Python 100.0%