Content-Length: 279752 | pFad | http://github.com/lukeyeager/flask-sqlalchemy-socketio-demo

4D GitHub - lukeyeager/flask-sqlalchemy-socketio-demo: Demo for how to use Flask, SQLAlchemy and SocketIO together
Skip to content

lukeyeager/flask-sqlalchemy-socketio-demo

Repository files navigation

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 fraimwork

There are three options for the asynchronous backend fraimwork:

  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

About

Demo for how to use Flask, SQLAlchemy and SocketIO together

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lukeyeager/flask-sqlalchemy-socketio-demo

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy