Skip to content

Instantly share code, notes, and snippets.

@ketanghumatkar
Forked from umar-siddiqui/ionic-setup.md
Created March 11, 2016 11:19
Show Gist options
  • Save ketanghumatkar/66afe56c68ebf091c87d to your computer and use it in GitHub Desktop.
Save ketanghumatkar/66afe56c68ebf091c87d to your computer and use it in GitHub Desktop.

Install Nodejs

sudo npm install -g n
sudo npm cache clean -f
sudo n 4.3.1
node -v 

Install java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install ubuntu-developer-tools-center

sudo add-apt-repository ppa:didrocks/ubuntu-developer-tools-center
sudo apt-get update
sudo apt-get install ubuntu-developer-tools-center

Install andriod Studio and SDK

https://launchpadlibrarian.net/194227238/android.py.patch

udtc android

Add below line in Bashrc file

export ANDROID_HOME=/home/webonise/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Ionic Setup Basic Steps

npm install -g cordova ionic gulp
ionic start myApp tabs

Your Ionic project is ready to go! Some quick tips:

  • cd into your project: $ cd myApp

  • Setup this project to use Sass: ionic setup sass

  • Develop in the browser with live reload: ionic serve

  • Add a platform (ios or Android): ionic platform add ios [android] Note: iOS development requires OS X currently See the Android Platform Guide for full Android installation instructions: https://cordova.apache.org/docs/en/edge/guide_platforms_android_index.md.html

  • Build your app: ionic build

  • Simulate your app: ionic emulate

  • Run your app on a device: ionic run

  • Package an app using Ionic package service: ionic package

For more help use ionic --help or ionic docs

Visit the Ionic docs: http://ionicframework.com/docs

New! Add push notifications to your Ionic app with Ionic Push (alpha)! https://apps.ionic.io/signup

cd myApp
ionic platform add android
ionic build android
ionic emulate android

place where apk are stored on build

/[path to app]/myApp/platforms/android/build/outputs/apk/android-debug.apk

Working with SCSS

[http://ionicframework.com/docs/cli/sass.html]

Guide for ionic

[http://ionicframework.com/docs/guide/]

[http://ionicframework.com/docs/]

One line script

sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer && sudo add-apt-repository ppa:didrocks/ubuntu-developer-tools-center && sudo apt-get update && sudo apt-get install ubuntu-developer-tools-center && udtc android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment