Skip to content

Instantly share code, notes, and snippets.

@alexlopes
Last active June 16, 2016 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexlopes/490c1e9c40fe42effab0 to your computer and use it in GitHub Desktop.
Save alexlopes/490c1e9c40fe42effab0 to your computer and use it in GitHub Desktop.
Ionic Getting Started

#Page

##Create a page

ionic g page reacoes-adversas-analysis

#Adding a specific plataform version

cordova platform add android@3.6.3 --usenpm

#Deploy ionic-app to device with ADB

#List packages
sudo /opt/android-sdk/platform-tools/adb shell 'pm list packages -f'

#Removing current package
sudo /opt/android-sdk/platform-tools/adb uninstall com.ionicframework.diariosaudeapp73466

#Installing package
sudo /opt/android-sdk/platform-tools/adb install android-debug.apk 

#Logging http://developer.android.com/intl/pt-br/tools/debugging/debugging-log.html#outputFormat
sudo /opt/android-sdk/platform-tools/adb logcat -d -v thread

#Deploy ionic-app to device with run (Android)

  #Listing http://muratsutunc.com/2015/01/20/Listing-targets/
  ionic run android --list
  ionic run android

#Ionic + Docker

##Run

docker run -ti --rm -p 8100:8100 -p 35729:35729bile/diario-saude-app/diario_saude_mobile/:/myApp:rw agileek/ionic-framework:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment