PhoneGap is the original and most popular distribution of Apache Cordova. Turn your HTML, CSS and JavaScript into an app on your device in minutes using our simple desktop and developer apps. Ionic is a front-end SDK for building cross-platform mobile apps.
Steps:
-
Installing Cordova
Cordova command-line runs on Node.js and is available on NPM. Follow platform specific guides to install additional platform dependencies. Open a command prompt or Terminal, and type
npm install -g cordova
. -
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 create MyApp
. -
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
cd MyApp cordova
.
platform add browser -
Run your app
From the command line, run
cordova run browser
. -
Build your app
cordova build
Leave a Reply