Install Ubuntu desktop on PC / VM Install Docker and Redis image:
sudo apt install docker redis-tools -y
sudo docker run -p 6379:6379 -d redis:5
# Check Redis:
redis-cli
127.0.0.1:6379> PING
PONG
# Shutdown Redis:
redis-cli
127.0.0.1:6379> SHUTDOWN
# Exit Redis-cli:
127.0.0.1:6379> EXIT
Before install packages (python -m pip freeze > requirements.txt)
git clone https://github.com/karock5345/djchannels4.git
sudo apt-get install -y virtualenv
cd to project folder
virtualenv env
source env/bin/activate
python3 -m pip install -r requirements.txt
# [List of installed packages] pip list
# [update package]
python3 -m pip install django -U
python3 manage.py runserver 0.0.0.0:8000
# test the server : ip:8000
deactivate
python3 manage.py runserver 0.0.0.0:8000
Open web browner : http://127.0.0.1:8000/chat/