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
or
make boostrap port=<syncbase port>
Related targets:
make creds make syncbase [port=<syncbase port>]
To run a local dev server use:
make start
If you would like to change the port that is used:
make start port=<port>
To connect to a syncbase instance other than the default, navigate to:
localhost:<server port>
or
localhost:<server port>/?syncbase=<syncbase port>