This is a demo app of real-time websocket communications using django and react
sudo apt update
sudo apt install redis-server
The commands below can be used to stop, start and enable Redis Server to automatically start up everytime the system boots up…
sudo systemctl stop redis-server
sudo systemctl start redis-server
sudo systemctl enable redis-server
cd frondend
npm install
npm run-script build
or
yarn build
Move to the root directory of the project
cd realtimeapp
python3 -m venv .venv
Activate virtual environment
source .venv/bin/activate
pip install -r requirements.txt
celery -A realtimeapp worker --loglevel=info
./manage.py runserver 0.0.0.0:8001
Now you can access the server on browser by typing localhost:8001