Our goal for today is to build a realtime chatroom using Django, Redis, and Socket.IO. While we'll be building a chatroom the concepts can be applied to almost any web app.
Setup
- Django 1.10
- nodeJs
- redis-server
Redis Installation
sudo apt-get install redis-server
sudo pip install redis
sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs
Ones this is done then go to node directory
npm install
Django Installation
Ones virtual environment activate
pip install Django==1.10
After then go to project directory
python manage.py makemigration
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver