WIP

Change-Id: Iceb220498b913f832ca41dab39f5ab30676938a0
2 files changed
tree: 5982dafacd13e2cdad72994f375888d8831b5075
  1. mocks/
  2. src/
  3. test/
  4. tools/
  5. .gitignore
  6. .jshintignore
  7. .jshintrc
  8. AUTHORS
  9. CONTRIBUTORS
  10. LICENSE
  11. Makefile
  12. package.json
  13. PATENTS
  14. README.md
  15. VERSION
README.md

Travel Planner

An example travel planner using Vanadium.

Dependencies

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/...

Building

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

Running locally

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>