commit | 1193145c3fd1ac65e3decbf0cbc1a4e36621de79 | [log] [tgz] |
---|---|---|
author | Adam Sadovsky <asadovsky@gmail.com> | Thu Oct 08 22:26:33 2015 -0700 |
committer | Adam Sadovsky <asadovsky@gmail.com> | Thu Oct 08 22:26:33 2015 -0700 |
tree | 299ce546c98060326663a9f3446613620a712e62 | |
parent | c70c6589a5b61a1532b2b51cf4cacf272abf5300 [diff] |
TBR: travel: syncbase: s/yncGroup/yncgroup/ With this change, we establish a convention of treating "syncgroup" as a single, common (non-proper) noun. The main motivation for this change was consistency, for a term that's used widely across our codebase and docs. Arguments for "Syncgroup" over "SyncGroup" were: - it's "Syncbase", not "SyncBase" - we'd probably like to use "syncgroup" rather than "sync_group" in snake-case text, e.g. in filenames like "syncgroup_test.go"; using "SyncGroup" for camel-case text would make these two inconsistent (Nick pointed this out) - avoids ambiguity about capitalization at the start of a sentence vs. inside a sentence ("SyncGroup" vs. "syncgroup"?) (Note, I discussed this change with Bindu, Raja, and Nick before making it.) I mainly used 'find -exec perl -pi -e' to prepare this change, plus manual inspection and tweaks. The main painful part was updating lots of comments in the Syncbase implementation to use "syncgroup" instead of "Syncgroup" where that was the intended usage. MultiPart: 11/11 Change-Id: I63c62887d1bb21022b04e768d55796ef54cd3805
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 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 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>