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-sample
Next, go into the sample app directory:
$ cd stormpath-express-api-auth-sample
Now, install all of the node.js dependencies (via npm):
$ npm install
Create a .env
file:
$ touch .env
Inside, 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 .env
Finally you are ready to fire up the application server:
$ node server.js
Go 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: