Skip to content
Demo for how to use Flask, SQLAlchemy and SocketIO together
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
myapp
tests
.gitignore
.travis.yml
LICENSE
README.md
manage.py
requirements-test.txt
requirements.txt
setup.cfg

README.md

flask-sqlalchemy-socketio-demo

Build Status

Demo for how to use Flask, SQLAlchemy and SocketIO together

Setup

pip install -r requirements.txt
./manage.py db init
./manage.py db migrate
./manage.py db upgrade

Asynchronous framework

There are three options for the asynchronous backend framework:

  1. eventlet
  • pip install eventlet
  1. gevent
  • pip install gevent gevent-websocket
  1. threading
  • built-in

Communication method

There are three options for the worker-server communication method:

  1. SocketIO
  • pip install socketio-client
  1. Redis
  • pip install redis
  1. ZeroMQ
  • pip install pyzmq

Run server

./manage.py runserver

Test functionality

./manage.py add
You can’t perform that action at this time.