commit | 498cf3b696374683dba389fa98c68c11388da60f | [log] [tgz] |
---|---|---|
author | Ross Wang <rosswang@google.com> | Mon Aug 03 20:26:34 2015 -0700 |
committer | Ross Wang <rosswang@google.com> | Wed Sep 09 11:13:06 2015 -0700 |
tree | dd9aaa343adaf7ae5a31d1c90d9dfa91b7138bf1 | |
parent | c53c9dc1f611f97cfaf13aaae53b8fc1e5666289 [diff] |
Travel app syncbase integration Syncbase for messages and trip plans SyncGroups for devices with a single user's blessing Adding es6-shim and updating makefile to use v23 standard node version Change-Id: I0b1ad88ff74bf607826241521174defc6231ac14
An example travel planner using Vanadium.
If you have a $V23_ROOT
setup you can install Node.js from $V23_ROOT/third_party
by running:
v23 profile install nodejs
Optionally, it is possible to use your own install of Node.js if you would like to use a more recent version.
In order to run the local syncbase instance via make bootstrap
or related targets, you will need to ensure that the standard Vanadium binaries have been built by running:
v23 go install v.io/...
The default make task will install any modules listed in the package.json
and build a browser bundle from src/index.js
via browserify.
make
It is possible to have the build happen automatically anytime a JavaScript file changes using the watch tool:
watch make
Local instances require a blessed syncbase instance. To attain blessings and start syncbase, use:
make bootstrap
or
make boostrap port=<syncbase port>
Related targets:
make creds make syncbase [port=<syncbase port>]
To run a local dev server use:
make start
If you would like to change the port that is used:
make start port=<port>
To connect to a syncbase instance other than the default, navigate to:
localhost:<server port>
or
localhost:<server port>/?syncbase=<syncbase port>