commit | 89cfb875d552fda0889e5d9253618bb7be88324a | [log] [tgz] |
---|---|---|
author | Asim Shankar <ashankar@google.com> | Wed Oct 14 13:39:12 2015 -0700 |
committer | Asim Shankar <ashankar@google.com> | Wed Oct 14 13:39:12 2015 -0700 |
tree | f8272f6c534f80756492ec049901665758309b8a | |
parent | 33bcb5cb21d7ebf8cb99bfbb545647a3cdb8b566 [diff] |
Counterpart to https://vanadium-review.googlesource.com/16648 MultiPart: 6/7 Change-Id: I82165424caf8449bcedb1cc94c915f3652de69f8
An example travel planner using Vanadium.
If you have a $JIRI_ROOT
setup you can install Node.js from $JIRI_ROOT/third_party
by running:
jiri 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 any time 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>