Quickstart
1. Install NodeJS or Upgrade
2. Download Project
Download zip file and unzip.
3. Open a command prompt
-
Windows
Select
Search programs and files
type innode.js command prompt
and selectNode.js command prompt
. -
OSX
Open terminal by clicking
Search Spotlight
typing inTerminal
and selecting Terminal.
4. Cd into the directory you cloned or unzipped
Depending on how you downloaded and unzipped the project.
-
Windows
cd Downloads/simple-member-api-nodejs-master/simple-member-api-nodejs-master
-
OSX
cd Downloads/simple-member-api-nodejs-master
5. Install client app node dependencies
npm install
6. (OPTIONAL) Configure credentials.
This example is configured with default test credentials. You can optionally request your own sandbox credentials: http://orcid.org/content/register-client-application. The following configuration keys can be overwritten by setting environment variables:
- CLIENT_ID - Client id issued by ORCID.
- CLIENT_SECRET - Client secret issued by ORCID
- AUTH_SITE - https://sandbox.orcid.org or https://orcid.org
- TOKEN_PATH - https://api.sandbox.orcid.org/oauth/token, https://pub.sandbox.orcid.org/oauth/token,
- REDIRECT_URI - Link use is sent back to with OAuth2 authorization code.
7. Start client application.
node client-app.js
http://localhost:8000/
8. Open localhostYou should have the a sample client application running on your local machine!