florianpaquet / django-mease-example

Simple chat example using django-mease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-mease-example

Simple chat example using django, django-mease and AngularJS.

screenshot

Installation

Clone this repo and set up your virtualenv as usual :

git clone https://github.com/florianpaquet/django-mease-example.git
cd django-mease-example
virtualenv virtenv
source virtenv/bin/activate
pip install -r requirements.txt

django-mease comes with Redis PUB/SUB backend by default. Install these dependencies to get it to work :

sudo apt-get install redis-server python-dev
pip install redis toredis-mease

Set up sqlite database :

python manage.py syncdb

Usage

Start websocket server in a first terminal :

python manage.py run_websocket_server

Start django debug server in a second one :

python manage.py runserver

Navigate to http://localhost:8000 in your browser.

About

Simple chat example using django-mease


Languages

Language:JavaScript 72.0%Language:CSS 25.8%Language:Python 2.2%