Book Image

PhoneGap 4 Mobile Application Development Cookbook

Book Image

PhoneGap 4 Mobile Application Development Cookbook

Overview of this book

Table of Contents (19 chapters)
PhoneGap 4 Mobile Application Development Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Exploring the Ionic framework structure


In this section, we are going to explore the Ionic framework project structure. By understanding this structure, we can understand how Ionic framework works. We will start with the basic directory structure, the configuration files, and then the application files.

How to do it…

Basic directory structure

To start exploring the Ionic framework directories and files, follow these steps:

  1. Create a new blank Ionic project:

    ionic start thirdApp blank
    
  2. Change the directory by running the following command:

    cd thirdApp
    
  3. Add the platform to the project:

    cordova platform add ios
    cordova platform android
    
  4. Open the project directory. Run the following command if you are using Mac to open the current directory in Finder:

    open . 

    You will see the following directory structure:

  5. You may notice that the project structure is the same with the PhoneGap/Cordova project. Ionic uses the cordova CLI behind the scenes. An Ionic project is basically a Cordova project with several additions...