ionic & cordova setup

install ionic #

sudo npm install -g ionic cordova
sudo npm install -g ios-sim

npm dependency..

start a project #

ionic start myApp blank
ionic start myApp tabs
ionic start myApp sidemenu
cd myApp

run #

ionic platform add ios
ionic build ios
ionic emulate ios
ionic run ios

ionic run = ionic build && ionic emulate

Set up Android emulator. I was in: #

os x Yosemite version 10.10.2

cordova version 4.2.0

android studio 1.0.1

Java SE Development Kit 7

set path:

# on `~/.zshrc` file (open a text editor)
export ANDROID_HOME="/Users/<user>/Library/Android/sdk/"
export ANDROID_TOOLS="/Users/<user>/Library/Android/sdk/tools"
export ANDROID_PLATFORM_TOOLS="/Users/<user>/Library/Android/sdk/platform-tools"
PATH=$PATH:$ANDROID_HOME:$ANDROID_TOOLS:$ANDROID_PLATFORM_TOOLS

and then reopen terminal

install “android-19” from android SDK manager

$ android
# pick "SDK Platform Android 4.4.2, API 19"

and then go to a Cordova-based project directory

$ brew install ant

You may need ant

$ ionic platform add android
$ ionic build android
 
0
Kudos
 
0
Kudos

Now read this

Try blocks

try Block # …hitting the wall? then stop learnng Ruby, and come back any time. This is how I learned Ruby coding. I started with Chris Pine book, which starts with puts in Chapter 2. ('Hello World' shows in the Introduction, but that’s... Continue →