Book Image

Phonegap Essentials

By : Ivan Turkovic
Book Image

Phonegap Essentials

By: Ivan Turkovic

Overview of this book

Table of Contents (15 chapters)

Creating a new project

The ability to create a new project with a single command can be a powerful and easy thing to do and so this is one of the most important additions in the command-line interface. It will create the full application structure and you will be ready to start building the app.

Creating a Hello project

Creating a basic project is easy and simple by running the following command:

phonegap create Hello

This will create a new Hello directory in the current directory for a project named Hello. You should get the following response:

This will create the default directory file structure by convention. Some media assets will be included even though we have not yet defined which platform we will support. It should look as follows:

├── hooks
├── platforms
├── plugins
└── www
    ├── css
    ├── img
    ├── js
    ├── res
    │   ├── icon
    │   │   ├── android
    │   │   ├── bada
    │   │   ├── bada-wac
    │   │   ├── blackberry
    │   │   ├── ios
    │   │   ├── tizen
    │  ...