A simple Express.js web application to demonstrate core Stormpath functionality.
- Clone this repo to your computer, and cd into the project directory:
git clone https://github.com/stormpath/express-stormpath-sample-project.git
cd express-stormpath-sample-project
- Install the dependencies from package.json:
npm install
- Export your Stormpath API Key ID / Secret and Application HREF Environment Variables:
export STORMPATH_CLIENT_APIKEY_ID=xxx
export STORMPATH_CLIENT_APIKEY_SECRET=xxx
export STORMPATH_APPLICATION_HREF=xxx
- Start the server:
node server.js
- Visit http://localhost:3000/ in your browser