🏳️Apache Cordova

Website faviconcordova.apache.org

Mobile apps with _HTML_, _CSS_ & _JS_

Target multiple platforms with _one code base_

Free and _open source_

[Get Started](#getstarted) [Documentation](/docs/en/latest/)

Reusable code across platforms

Support for offline scenarios

Access native device APIs

Get Started Fast

================

1

Installing Cordova

------------------

Cordova command-line runs on [Node.js](https://nodejs.org/) and is available on [NPM](https://npmjs.org/package/cordova). Follow [platform specific guides](/docs/en/latest/index.html#develop-for-platforms) to install additional platform dependencies. Open a command prompt or Terminal, and type `npm install -g cordova`.

Copy

$ npm install -g cordova

npm install -g cordova

2

Create a project

----------------

Create a blank Cordova project using the command-line tool. Navigate to the directory where you wish to create your project and type `cordova create <path>`.

For a complete set of options, type `cordova help create`.

Copy

$ cordova create MyApp

cordova create MyApp

3

Add a platform

--------------

After creating a Cordova project, navigate to the project directory. From the project directory, you need to add a platform for which you want to build your app.

To add a platform, type `cordova platform add <platform name>`.

For a complete list of platforms you can add, run `cordova platform`.

Copy

$ cd MyApp

$ cordova platform add browser

cd MyApp cordova platform add browser

4

Run your app

------------

From the command line, run `cordova run <platform name>`.

Copy

$ cordova run browser

cordova run browser

5

Common next steps

-----------------

*   [Read the docs](/docs/en/latest/guide/overview/)

*   [Add a Plugin](/docs/en/latest/guide/cli/#add-plugins)

*   [Customize app icons](/docs/en/latest/config_ref/images.html)

*   [Configure Your App](/docs/en/latest/config_ref/)

Supported Platforms

===================

See a list of [features supported](/docs/en/latest/guide/support/index.html) in each platform

---------------------------------------------------------------------------------------------

Cordova wraps your HTML/JavaScript app into a native container which can access the device functions of several platforms. These functions are exposed via a unified JavaScript API, allowing you to easily write one set of code to target nearly every phone or tablet on the market today and publish to their app stores.