Permalink
Browse files

Adding a script to prepare the bundle, generate keys, and put the key…

…s into the correct location.
  • Loading branch information...
1 parent a0a424a commit e70124c3a423cd34915470334a7ba7c467d46c1e @shane-tomlinson shane-tomlinson committed Sep 14, 2011
Showing with 18 additions and 2 deletions.
  1. +3 −2 README.md
  2. +15 −0 prepare_deps.sh
View
@@ -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)
View
@@ -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 ../..
+

0 comments on commit e70124c

Please sign in to comment.