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 (http://ionicframework.com/). 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 git@github.com:PacktPublishing/Practical-Internet-of-Things-with-JavaScript.git

or you can download the zip file from https://github.com/PacktPublishing/Practical-Internet-of-Things-with-JavaScript ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.