This Flask application is aimed to provide websocket backend for the CombatingSnake project.
- Clone the repository
virtualenv venv
source venv/bin/activate
[sudo] pip install -r requirements.txt
Many of the tests are highly dependent on the Django app; so you need to have that app running on a different process.
- Clone the Django app
- In the root of that app, run:
[PORT=8080] heroku local
; you need to specify the port manually if it is not 8080 by default. If you don't want it to run on port 8080, you need to specify theREST_HOST
environment variable below. - Clone this repository.
- In the root of this app, run
[REST_HOST=http://localhost:8080] python -m unittest discover
. - (Temporary) Expect the test
testNoMasterKey
to fail; we bypassed some security checks for iteration 2.
Below is the original README for the Python Websockets example. The original repository is here.
This is a simple application that serves tasty WebSockets to your users with Flask, Flask-Sockets, Gevent, and Gunicorn.
Mmmm.
Check out the live demo or read the docs.