Stormpath development server that provides your SPA app with a Stormpath integrated back-end.
Front-end applications can not communicate with the Stormpath API directly, and thus need an integrated back-end. Before your back-end has been integrated, use this development server when integrating Stormpath with your front-end app, using for example the AngularJS SDK.
- Make sure you have Node.js installed
- Install the server
$ npm install -g stormpath-spa-dev-server
- Download a key file from the Stormpath Console
- Open it and grab the API Key ID and API Key Secret, then run these commands to configure the server with your credentials:
$ export STORMPATH_CLIENT_APIKEY_ID=<YOUR-ID-HERE>
$ export STORMPATH_CLIENT_APIKEY_SECRET=<YOUR-SECRET-HERE>
- Login to the Stormpath Console and grab the href (called REST URL in the UI) of your Application
- Run this command with your App Href:
$ export STORMPATH_APPLICATION_HREF=<YOUR-APP-HREF>
- Start the server
$ stormpath-spa-dev-server <path-to-your-spa-app>
Example:
$ stormpath-spa-dev-server /home/joe/dev/my-app/
- It's now listening at http://localhost:3000/ and ready to use with your front-end app
Contact us via email at [email protected] or visit our support center. You can also see the Stormpath documentation for more information.
Apache 2.0, see LICENSE.