/   /   /  Ionic : useful commands for terminal

Note:

For more extensions and themes visit our store

Ionic : useful commands for terminal


Some useful commands for starting with Ionic framework :

- Install nodejs and relate it to command node :
apt-get install node

sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

ln -s /usr/bin/nodejs ~/bin/node


- Install npm :
apt-get install npm


-- Download export path android :
~/.bashrc
export PATH=$PATH:/opt/android-sdk-linux/tools
export ANDROID_HOME="/opt/android-sdk-linux"

- Install cordova and ionic :
npm install ionic -g


-Create appliaction
ionic start ibnab


- Show tree folder
tree -d


- Emlator 1
ripple emulate

- Build android
cordova build android
ionic build android

-Remove android :
ionic platform remove android

- Add android platform (the command create android folder with basic needed)
ionic platform add android


- Emulator 2 real android
ionic emulate android


- Emulate in browser
ionic serve


- For runing gulp start and ionic serve create file procfile with command:
gulp: gulp watch
serve: ionic serve


- Prepare android (for www):
cordova prepare ios


- Run in device:
ionic run android


- Cordova add plugin :
 cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git#r1.0.0
and  <allow-navigation href="*" /> in config.xml

Comments

make your store more efficient

Solving problems. With open source technology. Professional results. That’s what makes Ibnab your best choice

IBNAB is a company made of a group of professionals whose work is providing secure open source solutions. Our company strives for reaching magnificent results with each experience and provides professional open source solutions that cover every part of the business process.