commit | 0983f29fc1ff19f7d249d0aca07bbaed68608ff0 | [log] [tgz] |
---|---|---|
author | Jason Campbell <jason@artifact.sh> | Thu Sep 24 18:28:03 2015 -0700 |
committer | Jason Campbell <jason@artifact.sh> | Fri Sep 25 14:17:45 2015 -0700 |
tree | 9b72914027579e9f9137d26fcb323361269cddd5 | |
parent | d9e09e73e9eba937a8e0be850e09202aa4f7f506 [diff] |
reader: cleans up Syncbase code and interaction. Since Vanadium and Syncbase setup is asynchronous and has multiple levels of "readiness" the interaction between "state" and Syncbase APIs been moved out of individual component code and into the top-level application logic in browser/main.js. As a result: * All state updates and syncbase interactions can exist in a single place. * Components can only be responsible for defining their state and UI. File blobs are now stored in Syncbase and the pdf-store has been removed. As a result the routes have been emptied out since the APIs they used to call no longer exist. There is still clean up and features to add: * SyncGroup setup and interaction will be addressed via #16 * Route setup will be re-addressed as #17 is implemented. Closes #13 Change-Id: I4ef1599927e446efe5c94fc12c9e7ede60ccb80b
An example PDF reader using Vanadium.
If you have a $JIRI_ROOT
setup you can install Node.js from $JIRI_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