https://github.com/codingforentrepreneurs/rapid-chatxchannels
A rapid fire tutorial and introduction of Django Channels. To get more in depth check out the full course https://kirr.co/badl8e
https://github.com/codingforentrepreneurs/rapid-chatxchannels
channels channels2 django django2 javascript python redis tutorial websockets
Last synced: about 15 hours ago
JSON representation
A rapid fire tutorial and introduction of Django Channels. To get more in depth check out the full course https://kirr.co/badl8e
- Host: GitHub
- URL: https://github.com/codingforentrepreneurs/rapid-chatxchannels
- Owner: codingforentrepreneurs
- License: mit
- Created: 2018-07-06T18:46:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T19:32:55.000Z (almost 6 years ago)
- Last Synced: 2024-03-15T19:58:01.194Z (almost 2 years ago)
- Topics: channels, channels2, django, django2, javascript, python, redis, tutorial, websockets
- Language: Python
- Homepage: http://joincfe.com/youtube/
- Size: 15.6 KB
- Stars: 106
- Watchers: 13
- Forks: 83
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rapid-ChatXChannels
A rapid fire tutorial and introduction of Django Channels. To get more in-depth check out the full course https://kirr.co/badl8e
YouTube Video: __coming soon__
### Recommended Start
```bash
$ cd path/to/your/dev/folder
$ mkdir channels-rapid
$ cd channels-rapid
$ git clone https://github.com/codingforentrepreneurs/Rapid-ChatXChannels .
$ git reset a9a2c42052c87fd2eb5acdc417729f9359a1e087 --hard
$ git remote remove origin
$ virtualenv -p python3 .
$ source bin/activate
(channels-rapid) $ pip install -r requirements.txt
(channels-rapid) $ cd src
(channels-rapid) $ python manage.py migrate
(channels-rapid) $ python manage.py createsuperuser
... do the creation
(channels-rapid) $ python manage.py createsuperuser
... create second super user
```
### Install Redis
1. Download Redis
- Using [Homebrew](http://brew.sh):
```
brew install redis
brew services start redis
```
Brew permission errors? Try `sudo chown -R "$USER":admin /usr/local`
- Direct [Download](http://redis.io/download)
2. Open & Test Redis:
- open Terminal
- **redis-cli ping**
```
$ redis-cli ping
PONG
```
- **redis-server**
```
$ redis-server
86750:C 08 Nov 08:17:21.431 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
86750:M 08 Nov 08:17:21.433 * Increased maximum number of open files to 10032 (it was originally set to 256).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.5 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 86750
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
86750:M 08 Nov 08:17:21.434 # Server started, Redis version 3.2.5
86750:M 08 Nov 08:17:21.434 * The server is now ready to accept connections on port 6379
```
**Close Redis** with `control` + `c` to quit