Skip to content

karock5345/djchannels4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux development env.

SETUP Linux development env.

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 

SETUP SOURCE CODE

Copy / git source code to home dir

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

Test the code

python3 manage.py runserver 0.0.0.0:8000

Open web browner : http://127.0.0.1:8000/chat/

http://127.0.0.1:8000/chat/room/707/

http://127.0.0.1:8000/chat/send/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published