This is a demo application showing how to build a realtime polling application using Python and Pusher. You can read about how it was created on Pusher's blog.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software.
- Git.
- Python.
- Pip.
Clone the git repository on your computer
$ git clone https://github.com/neoighodaro/python-realtime-poll-pusher
You can also download the entire repository as a zip file and unpack in on your computer if you do not have git
After cloning the application, you need to install it's dependencies.
$ cd python-realtime-poll-pusher
$ pip install flask $ pip install pusher $ pip install simplejson
- Setup the database for the application
$ python dbsetup.py
- To set the application in development environment, run the following code
$ export FLASK_ENV=development
$ flask run