This is a real-time web app that shows what time it is on the server. In addition every visitor of the page can choose the background color of the page for that visitor and other connected visitors.
-
Install redis:
On Mac OS X run:
$ brew install redis
Start redis server:
$ brew services start redis
Check if redis is reachable:
$ redis-cli ping PONG
-
Create and activate a virtual environment:
$ virtualenv venv $ . venv/bin/activate
-
Download and extract or clone this project.
-
Install pip requirements into the virtual environment:
(venv)$ pip install -r requirements.txt
-
Run the local webserver:
(venv)$ python manage.py runserver
-
In another Terminal tab, run the management command that will send time to channels:
(venv)$ python manage.py provide_time
-
Open http://127.0.0.1:8000 in multiple web browsers and enjoy.