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 ionicionic start FooBarApp tabsStart your Ionic project
ionic serveNow you are ready to start developing
cd FooBarApp/Developing in the browser :D
ionic platform add androidNot 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 -hIf 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\toolsAdd the bin into the path
;C:\path\to\apache-ant\binionic platform add android
ionic build androidNot quite ready to deploy to device
Need to unlock Developer options
You need to find the build number
Settings > About phone > Build numberKeep 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_profileAdd 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 antHomebrew, package manager for Mac OSX
brew install node
brew install android-sdk
brew install antInstall 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 emulateionic serve --labView 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 androidionic infoUpdating Cordova
Try stay up to date