Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Node.js for Mobile Application Development
  • Toc
  • feedback
Learning Node.js for Mobile Application Development

Learning Node.js for Mobile Application Development

By : Stefan Buttigieg
4.1 (12)
close
Learning Node.js for Mobile Application Development

Learning Node.js for Mobile Application Development

4.1 (12)
By: Stefan Buttigieg

Overview of this book

Node.js is a massively popular JavaScript library that lets you use JavaScript to easily program scalable network applications and web services. People approaching Node.js for the first time are often attracted by its efficiency, scalability, and the fact that it's based on JavaScript, the language of the Web, which means that developers can use the same language to write backend code. Also, it’s increasingly being seen as a modern replacement for PHP in web development, which relies on fast-paced data exchange. The growing community and the large amount of available modules makes Node.js one of the most attractive development environments. This book takes a step-wise and incremental approach toward developing cross-platform mobile technologies using existing web technologies. This will allow you to truly understand and become proficient in developing cross-platform mobile applications with Node.js, Ionic Framework, and MongoDB. The book starts off by introducing all the necessary requirements and knowledge to build a mobile application with a companion web service. It covers the ability to create an API from scratch and implement a comprehensive user database that will give you the opportunity to offer a mobile application with a personalized experience. Midway through the book, you will learn the basic processes to create a successful mobile application. You will also gain higher-level knowledge, allowing you to develop a functional and secure mobile application to ensure a seamless user experience for end users. Finally, the book ends with more advanced projects, which will bring together all the knowledge and expertise developed in the previous chapters to create a practical and functional mobile-application that has useful real-world features.
Table of Contents (16 chapters)
close
14
14. Creating an E-Commerce Application Using the Ionic Framework
15
Index

Building for native devices


So far, everything we have done in Ionic has been tested in emulators or remote services. Now that we have an app that uses real phone features, it is time we finally went all the way and built the ultimate end-product—a mobile app.

Building and deploying Ionic apps on physical devices is remarkably easy thanks to the Ionic CLI. We will demonstrate how to do so in the following section.

Android

From the root of your project folder, run the following:

ionic platform add android

This will add all the files that are necessary to deploy your app on an Android device.

Next, we have two options for the running of our app—an actual Android emulator or a physical device.

Emulator

To run the app in the emulator, first build the project by running the following:

ionic build android

Finally, start the emulator and deploy the app by running the following:

ionic run

A physical device

Running an app on a physical device is just as simple as running the app on the emulator. First,...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete