O'Reilly logo

PhoneGap 3.x Mobile Application Development HOTSHOT by Kerri Shotts

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

Creating a new project based on an existing template

Now that we have a template, we need to create a project based on it. Note that we'll be using the Cordova CLI in this section.

Note

At the time of writing this book, the PhoneGap CLI did not support creating projects based on templates, so if you plan on using the PhoneGap CLI, you'll need to create your project, remove the content you don't want from the www directory, and copy the files in your template directory to your project's www folder.

Getting on with it

First, open your terminal app or command prompt and navigate to the location where you want to store your project files. Be sure to avoid paths that have spaces in them (depending on the platform and Cordova version, spaces can sometimes ...

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