commit | 99ae847e2f2294ce169ea80a7c8f916bf5c2d301 | [log] [tgz] |
---|---|---|
author | Jason Campbell <jasoncampbell@google.com> | Tue Aug 25 15:53:50 2015 -0700 |
committer | Jason Campbell <jasoncampbell@google.com> | Mon Aug 31 15:52:52 2015 -0700 |
tree | f1d3eb8be35cab27c9169057ad9a0752f0234da0 | |
parent | 9145f97996afe1d2a7136d0ee20061357edac58b [diff] |
TBR reader: adds basic syncbase support This CL adds very rough syncbase setup. To run syncbase use: make syncbase This will start a syncbased process which will mount long with the app: user/<email>/reader/:id/app user/<email>/reader/:id/syncbase The app will initialize syncbase if it hasn't been set up already with: user/<email>/reader/:id/syncbase/reader/db/data-sets And will store key/vlaue pairs with: user/<email>/reader/:id/syncbase/reader/db/data-sets/:key Closes #8 Change-Id: I436b3ab4e36c42f0aa208159f2fc55a7d0cd36f5
An example PDF reader 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.
The Makefile is setup to handle all dependencies once Node.js is installed. The default make task will install any modules listed in the package.json
and build a browser bundle from browser/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
To run a local dev server use:
make start
If you would like to change the host and or port that is used:
make start port=<port> host=<host>
Run syncbase with:
make syncbase
This will automatically have you set up credentials etc. If you want to remove stored data & credentials use:
make clean