Book Image

JavaScript Mobile Application Development

Book Image

JavaScript Mobile Application Development

Overview of this book

Table of Contents (15 chapters)
JavaScript Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preparing for the Mega App


In order to create our Mega App's initial files from the Cordova CLI, we run the cordova create command as follows:

> cordova create megaapp com.jsmobile.megaapp MegaApp

Then, we will add the following Cordova plugins to our project using the cordova plugin add command:

  • Camera plugin:

    > cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
    
  • Media plugin:

    > cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
    
  • File plugin:

    > cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
    
  • Device plugin:

    > cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
    
  • Dialogs plugin:

    > cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
    

As we support three platforms (iOS, Android, and Windows Phone 8), we run the following cordova platform add command from the app directory to add the platforms that we want to support...