Building the mobile app and implementing an end-to-end flow

In this section, we will build our mobile companion app using the Ionic framework ( The output or the example would be the same as what we have done for the web and desktop app.

To get started, we will install the latest version of ionic and cordova by running the following command:

npm install -g ionic cordova  

Now, we need the mobile app base. If you have not already cloned the book's code repository, you can do so using the following command (anywhere on your machine):

git clone

or you can download the zip file from ...

Get Practical Internet of Things with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.