Awesome
Reactive MySQL example application
A reactive scoreboard built using the following Javascript components:
- mysql-live-select - Provide events on
SELECT
statement result set updates - Express - Web framework
- SockJS - WebSocket emulation
- React - User interface library
Click on a player to select and then click on the arrow to increment their score.
Insert, increment and delete operations are latency-compensated.
Installation
Installation requires configuring a MySQL server to output a binary log. See the mysql-live-select
Readme for more information.
$ git clone https://github.com/numtel/reactive-mysql-example.git
$ cd reactive-mysql-example
$ npm install
# Update MySQL configuration
$ vim settings.js
# Add example data to MySQL server
$ mysql < example.sql
# Start server on port 5000
$ node index.js