Rainier Outdoor: Using the SheerID API
Click here to visit a running version of Rainier Outdoor.
This website was created for demonstration purposes. It provides examples of how to use the SheerID API in the context of a running web application.
Where do I find the website's calls to the SheerID API?
The sheerid.js file contains all of the SheerID API calls and things that are related to those calls. The functions inside of that file are called by the router in index.js, student.js, military.js, teacher.js, firstresponder.js. These files all make HTTP requests to the SheerID API.
These instructions assume you are using MacOS, although they could work for different operating systems.
- Git, NodeJS, and MongoDB are installed.
- An instance of MongoDB is currently running on your computer.
Follow these steps if you want to deploy the project locally to make changes to it.
- Clone this repository:
git clone https://github.com/sheerid/getting-started
- Navigate to the implementation directory:
- Install the project's dependencies:
- Launch the application:
You should now be able to visit
localhost:3000 and see your local version of this application. If PORT is defined in your local environment, visit
NOTE: This website will not be fully functional in your local environment until you add the following values to your environment:
This means you will need a SheerID Sandbox account. You will need to issue an API Token, a Secret Token, and then create templates and email notifiers for the affiliations listed above, then add those values to your environment (normally located in ~/.bash_profile) so that the code will work like you intend. See the bottom of the sheerid.js file and look at the code snippets starting with