A sweet simple awesome example of using socketio, redis, gevent and django
Python Shell JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
scripts
static
templates
tests
.gitignore
LICENSE
ReadMe.rst
__init__.py
local_settings_example.py
manage.py
requirements.txt
settings.py
socketioserver.py
urls.py

ReadMe.rst

Say What? GEvent, Django, Socket.io and Redis

I love bringing technologies together that makes things simple to do really neat and fun things like when dealing with live feedback!

Projects Used

Testing is done with nose and the sure testing tools.

Additionally, redis, gevent, socket.io, and especially django.

Setup and Testing

You will need to make sure you have a version of nginx that is patched with the tcp proxy module maintained by yaoweibin:

https://github.com/yaoweibin/nginx_tcp_proxy_module

Or, my great friend Gabriel Falcao created a simple brew formula:

https://gist.github.com/1007028

You can simple run:

brew install https://gist.github.com/1007028

If you're using my shelter script you can create a virtualenv and setup the project in no time and start hacking around with all the components.

Add shelter to your ~/.bashrc (just a simple alias to mkvirtualenv --no-site-packages that I use frequently):

shelter saywhat
git clone http://git@github.com:nyxtom/saywhat.git
cd saywhat && pip install -r requirements.txt

Scripts and Helpers

Firstly you will need to source the commands to use them:

source scripts/helpers

Various helpers were used to do common things like starting up and shutting down supervisor, running acceptance tests, unit testing, simple process kills, silent start-ups...etc.

To see a list of the commands that you can use with this project run the command:

askthor

Running it

After you've reviewed and got things setup, run the below:

runthor

:)