Skip to content

This is a demo app of real-time technology using django and react

Notifications You must be signed in to change notification settings

ewanyonyi/realtimeapp

Repository files navigation

realtimeapp

This is a demo app of real-time websocket communications using django and react

Installation

(i). Install redis

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

(ii). Build React Frontend UI

(a) Install Dependacies
cd frondend
npm install
(b) Build
npm run-script build
    or
yarn build

(iii). Running the server

Move to the root directory of the project

cd realtimeapp

(a). Create Virtual Envrionment

python3 -m venv .venv

Activate virtual environment

source .venv/bin/activate

(b). Install Python Dependacies

pip install -r requirements.txt

(c). Run Celery Task

celery -A realtimeapp worker --loglevel=info

(d). Run The Server

./manage.py runserver 0.0.0.0:8001

Now you can access the server on browser by typing localhost:8001

About

This is a demo app of real-time technology using django and react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages