Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By : Kerri Shotts
Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By: Kerri Shotts

Overview of this book

<p>PhoneGap allows you to use your existing knowledge of HTML, CSS, and JavaScript to create useful and exciting mobile applications.<br /><br />This book will present you with 12 exciting projects that will introduce you to the dynamic world of app development in PhoneGap. Starting with their design and following through to their completion, you will develop real-world mobile applications. Each app uses a combination of core PhoneGap technologies, plugins, and various frameworks covering the necessary concepts you can use to create many more great apps for mobile devices.</p>
Table of Contents (21 chapters)
PhoneGap 3.x Mobile Application Development HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating the template


In the previous chapter, we discussed how to use the Cordova CLI in order to create new projects and manage the platforms and plugins within each project. This works well, except for one thing: the www folder in your project is already pre-populated with files that need replacing. Wouldn't it be great if you could create a new Cordova project with all the files you needed in the www folder instead? In order to do this, we need to create a template that holds the files we actually want to have in our projects.

It should be noted that if you don't want to go through the work of creating a template, you can download the code package for this book and use ours instead.

Getting on with it

A template project lives in its own directory, so you'll need to create a new directory for the template to reside in. Since we'll be passing this directory to Cordova on the command line, it would be advisable for you to avoid paths with spaces in them.

Then, you'll need to mirror the following...