Skip to content

A sample web application using node.js and Stormpath Express integration

Notifications You must be signed in to change notification settings

rkazarin/stormpath-express-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stormpath-express-sample

A sample web application using node.js and Stormpath Express integration

Getting started

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/

Screenshots

Here are some screenshots to give you a feel of what you are in for:

Login Screen

Api Key

Basic REST call

Get OAuth token

Permitted OAuth call

Denied OAuth call

About

A sample web application using node.js and Stormpath Express integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published