Marie000 / OpenCodeReviewer

3 stars 3 forks source link

Error: API key ID and secret is required. #34

Closed saracarlile closed 7 years ago

saracarlile commented 7 years ago

I forked the repository, cloned it, and then tried running npm start so I could view it at localhost:9000. I received the error in the console: 'Error: API key ID and secret is required.' It looks like you have the file 'apiKey.properties' for stormpath .gitignor-ed (understandably!) but this makes it difficult to work on the project locally since I can't run it.

Marie000 commented 7 years ago

you will need to create a free stormpath account. Once you have that, in your console, set the api key, api secret and href:

export STORMPATH_CLIENT_APIKEY_ID=YOUR_ID_HERE
export STORMPATH_CLIENT_APIKEY_SECRET=YOUR_SECRET_HERE
export STORMPATH_APPLICATION_HREF=YOUR_APP_HREF

(if in Windows, replace export with set)

Marie000 commented 7 years ago

Did you manage to make it work?

saracarlile commented 7 years ago

Yes, I can run your project locally now with these instructions in addition to what you posted on FB. Thanks!

saracarlile commented 7 years ago

I just did a git pull upstream master, and noticed that your apiKey file is now saved to your repository in the root directory.

Marie000 commented 7 years ago

yep. the api key file should not be there. But I will be switching to a new auth service anyways, so it doesn't matter.