Book Image

Phonegap Essentials

By : Ivan Turkovic
Book Image

Phonegap Essentials

By: Ivan Turkovic

Overview of this book

Table of Contents (15 chapters)

Project folder structure


PhoneGap emphasizes convention over configuration when it comes to its project folder structure. There are four main folders and a configuration file called config.xml. The configuration file is where you can change different preferences of the application, such as the starting home screen, that will load first. Throughout the book we will use the default option for home screen page that is pointing to index.html.

There are four folders in the root structure:

  • hooks: Contains all the scripts that are used to customize different PhoneGap commands. Any scripts added to these internal folders will be executed before and after the specific command that corresponds to the folder name. It is useful to create your own building process in case some manual work is required with some of the plugins. These features are meant for advanced users but it is worth explaining them since the folder is created by default.

  • platforms: Inside this folder, new folders are created for each...