Installing Ionic on Ubuntu
Hello,
nowadays I am working in a project with ionic framework. Ionic is an advanced HTML5 Hybrid Mobile App Framework. It’s an open-source front-end framework for creating beautiful mobile applications using HTML5.
Ionic apps are based on Cordova, so Cordova utilities can be used to build, deploy and test apps. Ionic focuses on the look and feel of apps and it currently uses AngularJS to build awesome looking front-ends.
Since I needed to install Ionic on ubuntu and I did it in some steps to do it, I resolve to write these steps and write this post. I hope you enjoy it.😉
First install Node JS
$ sudo apt-get install curl
$ curl -sL https://deb.nodesource.com/setup | sudo bash –
$ sudo apt-get install nodejs
Install Git
$ sudo apt-get install git
Install Ant
$ sudo apt-get install ant
Install Java
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java*-installer
Install Android
Download the Android SDK and unpack it.
Set the Android Path.
$ sudo gedit .bashrc
Paste the following line in the end of the file
#Android PATHS
export PATH=$PATH:~/Development/adt-bundle-linux-x86-20140702/sdk/tools
export PATH=$PATH:~/Development/adt-bundle-linux-x86-20140702/sdk/platform-tools
Install Cordova
$ sudo npm install -g cordova
Install Ionic
$ sudo npm install -g ionic
Check dependencies
$ .cordova/lib/android/cordova/3.5.0/bin/check_reqs
Create the project
::choose one template: blank, tabs or sidemenu
$ sudo ionic start myApp sidemenu
$ cd myApp
$ sudo chmod -R 777 .
Configure Plataforms
::if you are using a mac try enable ios too.
$ ionic platform ios
$ sudo ionic platform android
Test it
$ ionic build android
$ ionic emulate android