Giter Site home page Giter Site logo

agend07 / pycon2013-socketio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lukesneeringer/pycon2013-socketio

0.0 2.0 0.0 148 KB

Companion Repository for the PyCon 2013 Talk: "Make More Responsive Web Applications with SocketIO and gevent"

License: BSD 3-Clause "New" or "Revised" License

pycon2013-socketio's Introduction

Make More Responsive Web Applications with SocketIO and gevent

This is a companion repository for the PyCon 2013 talk with the above title:

Its purpose is to provide a proof of concept. The code provided here was written against Python 2.7, but it should work without issue on Python 2.6.

The primary, intended purpose of this repository is for it to be browsed ("how do I do that?"), but you can install and run it, too.

Dependencies

This package will depend on:

  • libevent
  • redis

...which you'll need to install on your own, either with your OS' package manager or manually.

You'll also need to install the Python packages listed in pip-requirements.txt, and the Python driver for your Django-supported database of choice.

Note: This will almost certainly not work in Windows of any flavor.

Redis

Note that this package does depend on Redis. Redis is not, by any means, necessary to build a SocketIO-based application, and indeed, this demonstration could work without it.

Adding Redis into the mix, however, makes it very straightforward to have something outside of our web stack issue the broadcast. Since many use cases will want to do this, it seems helpful to demonstrate it in this manner.

Setup

Setup from this point should be straightforward:

mkvirtualenv pycon2013_socketio --python=python2.7
workon pycon2013_socketio
git clone http://github.com/lukesneeringer/pycon2013-socketio.git
cd pycon2013-socketio/
pip install -r pip-requirements.txt

At this point, you'll need to do database setup:

  • Install the Python database driver for your Django-supported database of choice.
  • Create a database to house this project's tables.
  • Set the appropriate environment variables so Django knows credentials; consult settings.py for these.

Once the database is ready:

./manage.py syncdb
./manage.py runserver

Then point your browser at http://localhost:8000/.

pycon2013-socketio's People

Contributors

lukesneeringer avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.