commit | 1fee43dbfc2b68130868077ad088e43bb7118d6b | [log] [tgz] |
---|---|---|
author | Nicolas Lacasse <nlacasse@google.com> | Mon Apr 04 16:09:34 2016 -0700 |
committer | Nicolas Lacasse <nlacasse@google.com> | Mon Apr 04 16:09:34 2016 -0700 |
tree | 600672322317d3e414bdd72d84e6ef23d3d18b96 | |
parent | f5334324c01b13027dc930c9946dfcb73304a70a [diff] |
TBR: travel: Make all versions 'v23-0.1'. Change-Id: I55227262d098ca58d88f0cf7b121ae0dbdb19e96 MultiPart: 26/27
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>