Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
modified readme order
Browse files Browse the repository at this point in the history
Config.js must exist or npm start will fail.
  • Loading branch information
jeremykeen committed Nov 13, 2017
1 parent cbbd437 commit cd61b0c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions dialogflow-webhook/2-app-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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)
- [Particle Cloud API JS library](https://github.com/spark/particle-api-js)

0 comments on commit cd61b0c

Please sign in to comment.