reader: refactors local Vanadium peer discovery.

Cleans up discovery code and the way vanadium module calls are coupled
to application state.

* Skips example component test (until real ones can be
added).
* Updates make all to be silent on success.
* Adds dependency-check to the lint task.

SEE: #3
Change-Id: I4740a0d3d479c8ce784366b5a5c8ab5b7ffac58d
16 files changed
tree: de935cff99acd7984d3d6ff8562e315cc3b53163
  1. browser/
  2. public/
  3. test/
  4. .gitignore
  5. .jshintignore
  6. .jshintrc
  7. .v23ignore
  8. AUTHORS
  9. CONTRIBUTORS
  10. LICENSE
  11. Makefile
  12. package.json
  13. PATENTS
  14. README.md
  15. VERSION
README.md

Reader

An example PDF reader using Vanadium.

Development

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.

Building

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

Running locally

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>