Rekord is a javascript ORM that is offline & real-time capable.
This project contains examples and comes with a simple REST server and a PUB/SUB server for the real-time enabled applications.
npm install
Starting:
node node_modules/clickermonkey-pubsubjs/pubsub-server.js ../../backend/config.js &
rest_pid=$!
Stopping:
kill -9 $rest_pid
Starting:
node backend/example-api.js &
live_pid=$!
Stopping:
kill -9 $live_pid