Skip to content

Instantly share code, notes, and snippets.

@merolhack
Last active April 21, 2016 23:36
Show Gist options
  • Save merolhack/938b2a051662c011774d to your computer and use it in GitHub Desktop.
Save merolhack/938b2a051662c011774d to your computer and use it in GitHub Desktop.
First steps with Ionic 2 and AngularJS 2 over Android device emulator

Download and install "Android Studio": http://developer.android.com/sdk/index.html

Ensure that have the next environment variables in your PATH: ANDROID_HOME JAVA_HOME

Create an Android device emulator with the "AVD Manager" or with: $ android avd

Install Apache Crodova: $ npm install -g cordova

Install Ionic 2: $ npm install -g ionic@beta

Create the project: $ ionic start holaMundo --v2

♬ ♫ ♬ ♫ Your Ionic app is ready to go! ♬ ♫ ♬ ♫

Make sure to cd into your new app directory: cd holaMundo

To run your app in the browser (great for initial development): ionic serve

To run on iOS: ionic run ios

To run on Android: ionic platform add android ionic run android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment