Demo for how to use Flask, SQLAlchemy and SocketIO together
pip install -r requirements.txt
./manage.py db init
./manage.py db migrate
./manage.py db upgrade
There are three options for the asynchronous backend framework:
- eventlet
pip install eventlet
- gevent
pip install gevent gevent-websocket
- threading
- built-in
There are three options for the worker-server communication method:
- SocketIO
pip install socketio-client
- Redis
pip install redis
- ZeroMQ
pip install pyzmq
./manage.py runserver
./manage.py add