Create app in phonegap in windows
This article shows you, how to create application and deploy them to various native mobile platforms using the cordova command-line interface (CLI).
Install Cordova using CLI
Follow these steps to install:
- Download and install Node.js. Following installation, you should be able to invoke node and npm on your command line.
- Install the cordova module using npm utility of Node.js. The cordova module will automatically be downloaded by the npm utility.
$ npm install -g cordova
Go to the directory where you maintain your source code, and run a command such as the following: using command.
Create hello app:
$ cordova create hello com.example.hello HelloWorld
This command will create a folder ‘HelloWorld’.
All subsequent commands need to be run within the project’s directory, or any subdirectories.
So go to in this folder ‘cd HelloWorld’.
Add the platforms that you want to target your app. We will add the ‘ios’ and ‘android’ platform and ensure they get saved to config.xml:
$ cordova platform add ios --save $ cordova platform add android --save
To check your current set of platforms:
$ cordova platform ls
Build the App
By default, cordova create script generates a skeletal web-based application whose start page is the project’s
file. Any initialization should be specified as part of the deviceready event handler defined in
Run the following command to build the project for all platforms:
$ cordova build
You can optionally limit the scope of each build to specific platforms – ‘ios’ in this case:
$ cordova build ios
$ cordova build android
Source: Phonegap Docs