Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

ngrok the API engine

Before we go ahead and start working on the lambda service, we need to first expose our API engine to be available with a public URL, as in http://iotfwjs.com/api, so when the user asks the Alexa skill service a question or issues a command, the Alexa skill service can contact us via the lambda service.

So far, we have been using a local IP-based configuration to interact with the API engine, broker, web app, or Raspberry Pi. But, that doesn't work when we want, Alexa skill service to find us.

Hence, we are going to use a service named ngrok (https://ngrok.com/) to temporarily host our local code with a public URL that Amazon Alexa service can use to find us via lambda service.

To set up ngrok, please follow these steps: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content