ChatXChannels
ChatXChannels copied to clipboard
Learn to Build Real Time Chat with Django Channels
Chat x Channels
Learn to Build Real Time Chat with Django Channels
Requirements
- Django 2.0.5 or Django 1.11
- Channels 2.1.1
- Python 3.5 (and up)
Recommended Start:
$ cd path/to/your/dev/folder
$ mkdir channels
$ cd channels
$ git clone https://github.com/codingforentrepreneurs/ChatXChannels .
$ git reset 2d1d70cff13e77c5a83d50282b18e978d1f5fdbe --hard
$ git remote remove origin
$ virtualenv -p python3 .
$ source bin/activate
(channels) $ pip install -r requirements.txt
Lecture Code
Section 1: WebSockets & Channels
2 - Non-Realtime Chat with Django only
3 - Setup Django Channels
4 - Websocket Routing
5 - Consumer in Python & WebSocket API in JavaScript
6 - Accept WebSocket Connection
7 - Send & Receive Messages via WebSockets
8 - Async Consumer
9 - Websocket Groups
10 - The User in a Consumer
11 - Display Messages
12 - Save Chats in the Database
13 - Broadcast Messages to Group
14 - Broadcast Utility
15 - Delayed Broadcast Message
16 - Deploy to Heroku
Section 2: Workers & Channels
1 - Task Consumer
2 - Synchronous Trigger
3 - Test Run Worker Process
4 - Implement Worker Trigger
5 - Complete the Consumer