December 2017
Intermediate to advanced
296 pages
5h 56m
English
In this section, we are going to build the API engine. This engine interfaces with our apps and cascades the information from and to the smart device, connecting as an MQTT client with the broker.
To get started, we are going to clone a repository that we have created using a Yeoman (http://yeoman.io/) generator named generator-node-express-mongo (https://www.npmjs.com/package/generator-node-express-mongo). We have taken the code scaffolded by generator-node-express-mongo and modified it a bit for our needs.
Somewhere on your machine, download the complete code base of this book using the following command:
git clone https://github.com/PacktPublishing/Practical-Internet-of-Things-with-JavaScript.git
Or, you ...