From 6651142994433cd8fc403682bf3467c46bba6c15 Mon Sep 17 00:00:00 2001 From: CaffeineFusion Date: Sat, 2 Jan 2016 21:01:14 +1100 Subject: [PATCH 1/2] added ignore file --- config.js | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 config.js diff --git a/config.js b/config.js deleted file mode 100644 index 1bc25bc..0000000 --- a/config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - //Live Connect API information - clientId: '000000004011C945', - clientSecret: 'U5ofKaQiol75VbohV4hh-2x8XZpcJoPf ', - redirectUrl: 'http://onenoteapisamples.com:3000/callback' -}; \ No newline at end of file From a246b3abad6fb702be07ffb5cfce179f969bb952 Mon Sep 17 00:00:00 2001 From: Owen Date: Sat, 2 Jan 2016 21:11:33 +1100 Subject: [PATCH 2/2] Adjusted information on creds --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4850fb1..8ab92ce 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,17 @@ After you've setup your web server described above,.... 3. On the API Settings page, set Mobile or desktop setting to No. 4. Set the Redirect URI to the domain name of your web site, as in the following example. The root domain name must be unique, so if you use one domain for testing and another for production, you'll need to register separate client ids and secrets for each domain. ![](images/OneNoteMSAScreen.png) -5. On the App Setting page, copy the client ID and secret into the config.js file. +5. On the App Setting page, copy the client ID and secret into a new config.js file as follows: + +```module.exports = { + //Live Connect API information + clientId: '000000004011C945', + clientSecret: 'U5ofKaQiol75VbohV4hh-2x8XZpcJoPf ', + redirectUrl: 'http://onenoteapisamples.com:3000/callback' +};``` + +_Note: config.js has been added to the ignore file to protect creds_ + 6. Open a command prompt and go to the root directory of the project. 7. Setup project dependencies with the `npm install` command. 8. Run the app with the `npm start` command.