commit | 3c5a4482c6cfebd5f98613f8c2a8ae0b3b19aca6 | [log] [tgz] |
---|---|---|
author | Ross Wang <rosswang@google.com> | Thu Aug 20 19:37:22 2015 -0700 |
committer | Ross Wang <rosswang@google.com> | Wed Sep 09 11:13:13 2015 -0700 |
tree | 2cc5acf5c496fbea285c8297b713900467cb7b46 | |
parent | 1810822c69ed83e9b305a96b54cc419474b579eb [diff] |
Refactors to break apart large class Factoring out best-trip logic Factoring out facets of TravelSync Factoring out deferred syncbase utility Change-Id: I2056443c2ea0db5bd1693f28d66acf2d3e33373b
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.
In order to run the local syncbase instance via make bootstrap
or related targets, you will need to ensure that the standard Vanadium binaries have been built by running:
v23 go install v.io/...
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 bootstrap [creds=<creds subdir>] [port=<syncbase port>]
Related targets:
make creds [creds=<creds subdir>] make syncbase [creds=<creds subdir>] [port=<syncbase port>]
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 port>