Hybrid Front-end Mobile SDK
Speaker: Li-Wei, Lu
Text
PhoneGap is a distribution of Apache Cordova. You can think of Apache Cordova as the engine that powers PhoneGap, similar to how WebKit is the engine that powers Chrome or Safari.
whatever Web View API is available to native apps on a given platform
http://cordova.apache.org/docs/en/3.3.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide
Steps
install Xcode
install ios-sim
sudo npm -g install ios-sim
install Ionic
sudo npm install -g cordova ionic
Steps
install Java
install ant - apache ant(java library)
$ brew install ant
install Android SDK
Steps
Change Path
vim ~/.bash_profile
export PATH=${PATH}:/Applications/Android\ Studio.app/sdk/platform-tools:/Applications/Android\ Studio.app/sdk/tools export JAVA_HOME=$(/usr/libexec/java_home) export PATH=${JAVA_HOME}/bin:$PATH export PATH=/usr/local/bin:$PATH
Steps
$ ionic start myApp sidemenu
$ ionic platform add ios
$ ionic build ios
$ ionic emulate iOS
Template
Resources
── bower.json // bower dependencies
── config.xml // cordova configuration
── gulpfile.js // gulp tasks
── hooks // custom cordova hooks to execute on specific commands
── ionic.project // ionic configuration
── package.json // node dependencies
── platforms // iOS/Android specific builds will reside here
── plugins // where your cordova/ionic plugins will be installed
── scss // scss code, which will output to www/css/
── www // application - JS code and libs, CSS, images, etc.
Using Browser
$ionic serve
Using simulator
$ionic ios emulate
Using Ionic View
$ionic upload