Download zip file and unzip.
-
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.
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
npm install
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.
node client-app.js
8. Open localhost http://localhost:8000/
You should have the a sample client application running on your local machine!