https://github.com/ikushum/django-vue-chat-app
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.
https://github.com/ikushum/django-vue-chat-app
django django-channels vuejs2 websockets
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ikushum/django-vue-chat-app
- Owner: ikushum
- License: mit
- Created: 2018-06-12T14:38:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-04T19:22:02.000Z (over 2 years ago)
- Last Synced: 2025-03-24T23:53:51.484Z (3 months ago)
- Topics: django, django-channels, vuejs2, websockets
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 21
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# 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
```sh
$ pip3 install -r requirements.txt
```
Start a redis server on port 6379
```sh
$ echo "port 6379" | redis-server -
```
Apply migrations
```sh
$ python3 manage.py migrate
```
For starting local dev server
```sh
$ python3 manage.py runserver
```Also make sure to create new users from the console :
```py
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!**