Cordova
- File size
- 3.4KB
- Lines of code
- 100
[!NOTE]
This document covers Apache Cordova.
Cordova
Write once deploy everywhere.
Purpose
- Cross-platform Mobile Application Development Framework
- Wraps your Web App in a native container (WebView), allowing development with HTML, CSS, JavaScript (and other frontend frameworks)
- Provides access to native device features through plugins
Quickstart
Cordova projects generally take the following directory structure.
www/: Web Application code (HTML, CSS, JS, other frontend frameworks)platforms/: Platform-specific code (Android, IOS, etc.)plugins/: Installed Cordova pluginsconfig.xml: Main configuration file for Cordova App
example-cordova-app/
├── config.xml
├── hooks/
├── platforms/
├── plugins/
├── www/
│ ├── css/
│ ├── js/
│ └── index.html
├──...
Cordova and Vue.js
- Use Vue.js to build out the frontend of your Web App within Cordova's
wwwdirectory. - Use Cordova to package your Web App as a mobile application.