Archives week 14 of 2016

April 4, 2016 - April 10, 2016

Last update on .

###Install redis server

sudo apt-get install redis-server

Install tornado-redis package. Add this line to the requirements.txt file.


Run installer

pip install -r requirements.txt

Import tornadoredis and json package in the script.

import tornadoredis
import json

Connect to the redis server. Define the function.

class ChatConnection(SockJSConnection):
    def ...

Last update on .

Making video chat Django AngularJs Tornado SockJS.

Install Django

virtualenv vc_ve
cd vc_ve
source ./bin/activate

Create requirements.txt

echo 'Django' > requirements.txt

Install django

pip install -r requirements.txt

Create project startproject chat
cd chat

Install nodejs npm and bower

apt-get install nodejs
apt-get install npm
npm install -g bower

Create ...

Daily archives

Previous week

Week 12 of 2016