A sample web application using node.js and Stormpath Express integration
To get started, clone this repository locally:
$ git clone https://github.com/stormpath/stormpath-express-api-auth-sampleNext, go into the sample app directory:
$ cd stormpath-express-api-auth-sampleNow, install all of the node.js dependencies (via npm):
$ npm installCreate a .env file:
$ touch .envInside, add the following:
export STORMPATH_API_KEY_ID=[api_key_id]
export STORMPATH_API_KEY_SECRET=[api_key_secret]
export STORMPATH_APP_HREF=[app_href]
export STORMPATH_SECRET_KEY=[secret_key]
Export the .env file:
$ source .envFinally you are ready to fire up the application server:
$ node server.jsGo to localhost:8080 to run the application.
The application is also available online: http://pure-shelf-8870.herokuapp.com/
Here are some screenshots to give you a feel of what you are in for:





