An example of using all of the realtime-templates modules together in a single site.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
views
.gitignore
README.md
client.js
database.js
package.json
server.js

README.md

Realtime Templates - Example Site

An example of using all of the realtime-templates modules together in a single site.

Usage

Run npm start and navigate to http://localhost:9999/objects/1

Open up the web inspector console and type:

context.pushChange({name: "Tester", body: "Added in realtime", id: 9, parent_id: 1}, {source: 'user'})

Now refresh the page - the change should be preserved.

Featured Packages

realtime-templates

Render views on the server (using standard HTML markup) that the browser can update in realtime when the original data changes.

json-context

Allows a server to create a JSON Context - single object that supports querying and contains all data required to render a view/page. When sent to the client it also provides an event stream for syncing with server and data-binding.

level-json-context

Creates instances of jsonContext from a leveldb database using levelup. Contexts are automatically generated from matchers, and provides ability to watch matchers for realtime notifications.