Horten Server
horten-server
is a batteries-included package to provide control and persistence for reactive, shared-state creative applications. It includes:
- Realtime communication provided by horten-websocket.
- Simple persistence using horten-persist-file.
- Client-side controls from horten-control.
- RESTful access to Horten data.
Example
Javascript
let server =// Configure the server.server// Open the server.server// Use a Horten Cursor to listen to incoming changes from the server.listening: truepath: 'myDwarf/'console
CLI
sudo npm install -g horten-serverhorten-server \--http 8080 \--persist data/persist.yaml \--index yourControls.md \--require yourLogic.js