First steps in Cordova: Installation

This article has not been updated for a long time and may be outdated

Cordova/Phonegap is a platform for creating a JS/HTML application and deploy them to various native mobile platforms.


You have to have installed NodeJS in your system and npm package manager. If you use Debian or Ubuntu, you can use my tutorial to install it.


On Linux or OS X:

sudo npm install -g cordova


On Windows:

C:\>npm install -g cordova 

Creating first Cordova project

Go to the directory where you have your source code, and create a cordova project:

cordova create hello com.example.hello HelloWorld

“hello” is a project name, com.example.hello is domain name for application and HelloWorld is a name of an app shown in the mobile system.
This command creates the required directory structure.

By default, home page is the project’s www/index.html file.

{{ message }}

{{ 'Comments are closed.' | trans }}