Cordova 3 – The basics



Cordova 3 – The basics

0 0


presentation-cordova-3-the-basics

Presentation about The Basics of cordova 3

On Github aetheon / presentation-cordova-3-the-basics

Cordova 3

The basics

Created by Oscar Brito / @aetheon

13/12/2013

Installation

Install Node.js / NPM and then:

						
							npm install -g cordova
						
					

Workspace

Create a Project

						
							cd $basedir
						
							cordova create $Project -d
							cd $Project

							# create an android project
							cordova platform add android -d

						
					

Workspace

Project Structure

						
							 ls -l Project/

							 merges/
							 platforms/
							 plugins/
							 www/
						
					

Build

The build process copies the files from the www/ and plugins/ directories to platform/ and configure things like cordova_plugins.js...

						
							
							# Prepare files (copy) and compile
							cordova build -d

						
					

Debug (Browser)

						
							
							cordova serve
							
							=> http://localhost:8000/android/www/index.html
							
						
					

Debug (Android)

Using Android Studio (downloaded with the SDK) import the project on platforms/android/, then compile and run it...

EOF

Oscar Brito / @aetheon