commit | b77a4f250abc045ec26011d9a97f75bcede192ee | [log] [tgz] |
---|---|---|
author | Ross Wang <rosswang@google.com> | Tue Sep 15 15:36:35 2015 -0700 |
committer | Ross Wang <rosswang@google.com> | Fri Oct 09 13:02:02 2015 -0700 |
tree | c9d5df2dce4bdf01ce22d770520839e9c9ef5a1f | |
parent | 08d8697f7ca82230a1660182ef24a84bf409456a [diff] |
Adding watch support Change-Id: If8939c631e5a92a23391d9ce5dfab8e97d302a0f
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 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>