To install latest version of channels:
git clone git@github.com:django/channels.git
cd channels
<activate your project’s virtual environment>
(environment) pip3 install -e .
To install docker:
Follow this: (https://docs.docker.com/engine/install/)
or
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \apt-transport-https \ca-certificates \curl \gnupg \lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
Tu run the file:
docker run -p 6379:6379 -d redis:5
python3 manage.py runserver
Resources:
https://channels.readthedocs.io/en/latest/tutorial/part_1.html
https://github.com/zhanto97/drawing-board
https://www.youtube.com/playlist?list=PLLxk3TkuAYnpm24Ma1XenNeq1oxxRcYFT