Slides available at: slides.com/rkotze/
Both Mac OSX and Windows
Go to nodejs.org
Ionic command line tools are on NPM
Open cmd & Install Ionic
npm install -g cordova ionic
ionic start FooBarApp tabs
Start your Ionic project
ionic serve
Now you are ready to start developing
cd FooBarApp/
Developing in the browser :D
ionic platform add android
Not going to work ;(
We need to install a few more things
ERROR : executing command 'ant', make sure you have
ant installed and added to your path.
Take note where you install ANT & Android SDK will need to add it to the path
Open cmd & Is Java there?
java -h
If not add it to the path in Environment Variables
Tip: when updating the path restart the cmd
Add ADT tools & platform-tools to the path
;C:\Android\sdk\platform-tools;C:\Android\sdk\tools
Add the bin into the path
;C:\path\to\apache-ant\bin
ionic platform add android
ionic build android
Not quite ready to deploy to device
Need to unlock Developer options
You need to find the build number
Settings > About phone > Build number
Keep Tapping = now you are a developer
Yes :D
Open up developer options and check Android Debugging
Plugin your device and notification might show, allow USB debugging. :)
Add the ADT tools & platform-tools to the path
export ANDROID_HOME=/path/to/android-sdk/
export PATH=$PATH:$ANDROID_HOME/platform-tools/:$ANDROID_HOME/tools/
sudo vim ~/.bash_profile
Add ANT to the path
export PATH=$PATH:/you/path/to/apache-ant/bin/
Updating the path
Chocolatey, package manager for windows
choco install nodejs
choco install jdk
choco install android-sdk
choco install ant
Homebrew, package manager for Mac OSX
brew install node
brew install android-sdk
brew install ant
Install git and add to your path. A few of the Cordova plugins use .git URLs
Running Android emulator super slow
Better to test and debug on a device
Try Genymotion faster emulator
Remote debugging on device using chrome://inspect
USE -> ionic run NOT -> ionic emulate
ionic serve --lab
View Android and iOS side by side
Improved plugin management for teams in latest version of Cordova 4.3.0
ionic plugin add org.apache.cordova.camera --save
--save flag adds feature to config.xml
npm update -g cordova
cordova platform update android
ionic info
Updating Cordova
Try stay up to date