Web coding support
  • Home
  • PHP
  • Phonegap
  • Angular Js
  • Node Js
  • Previous year questions
  • B.Tech Questions
  • RTU

Create app in phonegap in windows

  • By admin
  • Jun-11-2016
  • Phonegap
  • 0 Comments.

Phonegap (Cordova) is a tool that allows creating native mobile app using HTML, CSS and Javascript.
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:

    1. Download and install Node.js. Following installation, you should be able to invoke node and npm on your command line.
    2. Install the cordova module using npm utility of Node.js. The cordova module will automatically be downloaded by the npm utility.
  1. $ npm install -g cordova

Create APP:

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

www/index.html

file. Any initialization should be specified as part of the deviceready event handler defined in

www/js/index.js.

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

Related Posts

  • How works ng-hide and ng-show in angular jsHow works ng-hide and ng-show in angular js
  • Login with facebook in core phpLogin with facebook in core php
  • HTML DOM Manipulation using JavaScriptHTML DOM Manipulation using JavaScript
  • Magic function library for Codeigniter like CakePHPMagic function library for Codeigniter like CakePHP
  • How to create pagination in PHP and MySQLHow to create pagination in PHP and MySQL
  • Form validation in codeigniterForm validation in codeigniter

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email this to a friend (Opens in new window)
  • Click to print (Opens in new window)

Related

FacebookTwitterGoogle+Google GmailPrintPinterestFacebook MessengerWordPressShare

Comments

Leave a Reply Cancel reply

← Previous Post Next Post →

Categories

  • Angular Js
  • Array
  • Codeigniter
  • facebook
  • Javascript
  • jquery
  • MySQL
  • oops
  • Pagination
  • Phonegap
  • PHP

Recent Posts

  • Fetch random results form MySQL
  • HTML DOM Manipulation using JavaScript
  • Magic function library for Codeigniter like CakePHP
  • What is the difference between an interface and abstract class
  • How to reset an array keys in php

Tags

Abstract Class angularjs array codeigniter facebook facebook login facebook sdk form validations function hide html Interface javascript jquery magic functions method mysql ng-hide ng-show nghide ngshow oops pagiation php recursion reference show static static functions

Subscribe us

Name
Email *
About This Site

We provide the simplest tutorials for web development.

Pages
  • Home
  • B.Tech Questions
  • Previous year questions
  • RTU
Categories
  • Angular Js
  • Array
  • Codeigniter
  • facebook
  • Javascript
  • jquery
  • MySQL
  • oops
  • Pagination
  • Phonegap
  • PHP
Search
  • facebook
  • twitter

Powered by Minmarks.com  |  A Coding blog by By Jitendra.

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.