Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenzopf committed Apr 8, 2017
2 parents 86dc03c + 4f9683a commit 7a81077
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ To make this work, all you’ll need is:

- Java 1.7 or later

- a Google Gmail account (recommended but not required if you want the web
simulator to work)



> If you don’t have a Google Home device and/or Node.js, see the Reference
Expand Down Expand Up @@ -396,22 +399,31 @@ gcloud beta functions deploy three_doors --trigger-http --stage-bucket gs://thre

> Note: Replace `xxxx` with the four numbers you chose above.
If this is the first time you’ve deployed the application, it will take some
time; as much as 5 minutes. Don’t worry, updates don’t take nearly as long so
it’s worth the wait of not having to manage your own servers.
This will deploy your Google Function, which is contained in the `index.js`
source file (we’ll talk about that next time), into the Google Cloud. If this is
the first time you’ve deployed the application, it will take some time; as much
as 5 minutes. Don’t worry, updates don’t take nearly as long so it’s worth the
wait of not having to manage your own servers.



Deploy your action.json test file
---------------------------------

Next, it’s time to use the command-line or web simulator to test your new Action
on Google. Use the command below. If this is the first time running the command,
you may see instructions to enter a security token, so be sure to read and
follow the instructions.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./gactions preview --action_package action.json --invocation_name "three doors" --preview_mins 1234
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This allows you to test the application in the command-line or web simulator or
on your Google Home device. The google email you used to set up your cloud
project will need to be the same account that manages your Google Home device.
Running the `gactions` command above will temporarily turn on your new Action of
Google temporarily. Only you will be able to test it. This allows you to test
the application in the command-line or web simulator or on your Google Home
device. The google email you used to set up your cloud project will need to be
the same account that manages your Google Home device.



Expand All @@ -422,6 +434,9 @@ Test your action
./gactions simulate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You may also be instructed to turn on audio in your Google account; if you do,
just follow the instructions.



In the simulator, type:
Expand All @@ -446,6 +461,11 @@ and understand more how it works.



Please share this article if you found it useful or message me on twitter
\@eisenzopf



References
==========

Expand Down

0 comments on commit 7a81077

Please sign in to comment.