Mobile apps withHTML,CSS&JS
Target multiple platforms withone code base
Free andopen source
Reusable code across platforms
Support for offline scenarios
Access native device APIs
Cordova command-line runs onNode.jsand is available on
NPM.
Followplatform specific guides
to install additional platform dependencies. Open a command prompt or Terminal, and typenpm install -g cordova
.
Create a blank Cordova project using the command-line tool. Navigate to the directory where you wish to create your project and typecordova create <path>
.
For a complete set of options, typecordova help create
.
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, typecordova platform add <platform name>
.
For a complete list of platforms you can add, runcordova platform
.
$ cd MyApp
$ cordova platform add browser
From the command line, runcordova run <platform name>
.
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.