diff --git a/README.md b/README.md index 261dd9142b9d1eea956b387750ad3cc21df2a76d..bec3d664ec5501c3f2c11b7990a5efb03c60677f 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,12 @@ Here's the software you'll need installed: * node.js (>= 0.4.5): http://nodejs.org/ * npm: http://npmjs.org/ * Several node.js 3rd party libraries - see `package.json` for details +* browserify which will be installed globally. ## Getting started: -1. install node -2. run `npm install` to installed 3rd party libraries into `node_modules` +1. install node and npm +3. run `./prepare_deps` to install 3rd party libraries and generate keys 3. run the top level *run.js* script: `node ./run.js` 4. visit the demo application ('rp') in your web browser (url output on the console at runtime) diff --git a/prepare_deps.sh b/prepare_deps.sh new file mode 100755 index 0000000000000000000000000000000000000000..4687f3cf5b83ad8ca79ae316d9f63dbead221379 --- /dev/null +++ b/prepare_deps.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +npm install + +echo '*** Asking for sudo to install browserify globally ***' +sudo npm install -g browserify + +cd lib/jwcrypto +./bundle.sh +node generate-keypair.js + +mv key.publickey ../../var/root.publickey +mv key.secretkey ../../var/root.privatekey +cd ../.. +