diff --git a/dialogflow-webhook/2-app-engine/README.md b/dialogflow-webhook/2-app-engine/README.md index bf0c3dd..88a25fa 100644 --- a/dialogflow-webhook/2-app-engine/README.md +++ b/dialogflow-webhook/2-app-engine/README.md @@ -2,6 +2,16 @@ This is the example code for the Dialogflow/Particle webhook application, designed to be deployed to [Google App Engine](https://cloud.google.com/appengine/). +## Local settings + +This application assumes that you're keeping your Particle access token and Photon's device ID in a file called `config.js`. However, you'll notice that there isn't one included — because you'll need to fill our your own! (And, it keeps the sensitive keys out of source control — always a good practice.) + +To start, copy the sample settings file into a new file (in the same directory): + + cp ./config.sample.js ./config.js + +You can grab the `deviceID` and `accessToken` values from the Particle Cloud Console. + ## Setup instructions Install the required NPM libraries that this application relies on: @@ -22,16 +32,6 @@ You should see it reply back with `It works!` — and if you see that, well, you npm run lint -## Local settings - -This application assumes that you're keeping your Particle access token and Photon's device ID in a file called `config.js`. However, you'll notice that there isn't one included — because you'll need to fill our your own! (And, it keeps the sensitive keys out of source control — always a good practice.) - -To start, copy the sample settings file into a new file (in the same directory): - - cp ./config.sample.js ./config.js - -You can grab the `deviceID` and `accessToken` values from the Particle Cloud Console. - ## Testing You can run this locally as a web server, in order to test any changes: @@ -81,4 +81,4 @@ The following libraries/open-source projects were used in the development of thi - [Nodemon](https://github.com/remy/nodemon) - [Actions on Google Client Library](https://github.com/actions-on-google/actions-on-google-nodejs) - [Google Cloud SDK](https://cloud.google.com/sdk/docs/) -- [Particle Cloud API JS library](https://github.com/spark/particle-api-js) \ No newline at end of file +- [Particle Cloud API JS library](https://github.com/spark/particle-api-js)