Skip to content
Experimenting with PostgreSQL's Listen/Notify and Flask-SocketIO
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
realtime
.gitignore getting dangerously close to success Sep 10, 2016
LICENSE
README.md
install.sh refactoring to todos Sep 11, 2016
manage.py refactoring to todos Sep 11, 2016
requirements.txt
run.sh bug fix Jul 25, 2016
test.sh
update_sql_triggers.sh updating readme Jul 25, 2016

README.md

realtime-flask-experiment

Experimenting with PostgreSQL's Listen/Notify and Flask-SocketIO

Blog post: https://rochard.org/personal-projects/realtime-flask-with-socketio-and-postgresql/

Flask part is largely from https://github.com/lukeyeager/flask-sqlalchemy-socketio-demo

PostgreSQL part is largely from https://blog.andyet.com/2015/04/06/postgres-pubsub-with-json/

Setup

The install.sh assumes that you are on your local dev pg instance that doens't have a password. If that's not the case you'll have to open up a terminal and modify the commands as needed.

bash install.sh
bash run.sh
bash test.sh
Open your browser and navigate to localhost:5001
You can’t perform that action at this time.