commit | fc23455fbd06c8d708fd41e7dfa8b32e4a080b43 | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Fri Sep 11 17:49:09 2015 -0700 |
committer | Todd Wang <toddw@google.com> | Fri Sep 11 17:49:09 2015 -0700 |
tree | 6b2d17ad7b44611591f0448d26a7382d194c6134 | |
parent | f7395f47eb9e058699477dea1b1c03c397c0d76b [diff] |
TBR: travel: Prepare all repos for open-sourcing. The CONTRIBUTING file is added to all repos, and also added to the jiri-copyright tool so that repos can be automatically checked and fixed. I've run jiri copyright fix against all repos to fix up outstanding issues. MultiPart: 22/23 Change-Id: If0bad7455530b877a4a9c6f0f227b8dae81ef95b
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>