commit | a1f42157a129926f0045e1217e06463ad17273d6 | [log] [tgz] |
---|---|---|
author | Adam Sadovsky <asadovsky@gmail.com> | Wed Sep 23 16:50:23 2015 -0700 |
committer | Adam Sadovsky <asadovsky@gmail.com> | Wed Sep 23 16:50:23 2015 -0700 |
tree | 8ccebaa5b319c8b1cced48f88787aef0d6c8391c | |
parent | 825716e3749dfa172181a3598764a1ef6c31c385 [diff] |
syncbase: new naming scheme see v.io/c/15923 for full description MultiPart: 7/8 Change-Id: I29127d31c4e427b806d37e63850378a9a03c4cf4
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.
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 syncbase [creds=<creds subdir>] [port=<syncbase port>]
Related target:
make creds [creds=<creds subdir>]
You can similarly run with fresh creds or syncbase data via:
make clean-creds make clean-syncbase
To run a local dev server use:
make start [port=<port>]
To connect to a syncbase instance other than the default, navigate to:
localhost:<server port>/?syncbase=<syncbase name or port>