O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting familiar with basics of the library

There are several ways to get started using Ionic Framework. The easiest way is to utilize Ionic CLI, which is an NPM package. NPM is a dependency manager for Node.js.

How to do it...

Perform the following steps to get started with Ionic framework:

  1. Install Ionic CLI by running the following command in the terminal. You may need super user access:
    npm install -g cordova ionic
    
  2. If somehow Ionic is not installed, you may require root access:
    sudo npm install -g cordova ionic
    
  3. Check your installation by running the following command:
    ionic -v
    

    If you see following output, Ionic has been installed on your machine:

  4. Create a new Ionic app project by using a readymade template:
    ionic start myapp tabs
    
  5. Run the project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required