commit | 96e4016d89a017e1e2945a776425d3ca5a52b565 | [log] [tgz] |
---|---|---|
author | Nicolas Lacasse <nlacasse@google.com> | Thu Sep 24 21:52:16 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Sep 24 21:52:16 2015 +0000 |
tree | 6d81a75ec06d3972ca512f020236ac1ae88c1269 | |
parent | a1f42157a129926f0045e1217e06463ad17273d6 [diff] | |
parent | dcc95fed18726884d1cd283f98a6fceec537c5fa [diff] |
Merge "TBR: travel: Replace V23_ROOT with JIRI_ROOT everywhere."
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:
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>