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 [email protected]: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 as well.
Once the repository has been downloaded, cd
into the base
folder and make a copy of mobile-app-base
folder into chapter2
folder.
Once the copy is completed, cd
into the mobile-app
folder and run the following command:
npm install...