#Build/Run the application.

ANDROID

You need to have the android sdk set up. The installation instructions for your specific platform can befound here.

Add android platform to your application

 $ ionic platform add android

This adds a folderandroidwithin theplatformsfolder in your app and adds the neccesarry resources needed to build an android application.

Build the android app

 $ ionic build android

This builds the application, and puts the built apk in theplatforms/android/build/outputsfolder.

Run the android app

 $ ionic run android

This will run the app in either your default emulator, or a phone connected to your computer with usb debugging enabled.

IOS

To build for ios, you need to be using MacOs and havexCodeinstalled. You also need two node modules installed globally. They just help in building and deploying the app.

$ npm install -g ios-deploy
$ npm install -g ios-sim version

Add ios platform to your project.

 $ ionic platform add ios

This adds a folderioswithin theplatformsfolder in your app and adds the necesarry resources needed to build an ios application.

Build your app for ios

 $ ionic build ios

This builds the application, and puts the build output in theplatforms/ios/build/emulatorfolder.

Then run the application in an ios simulator that comes installed with xCode

 $ ionic run ios

results matching ""

    No results matching ""