- Install stable version of NodeJS (https://nodejs.org/en/) and set as Default
$ nvm install v10.13.0
$ nvm alias default v10.13.0
- Install the Ionic CLI
$ npm install -g ionic
- Start App (blank | tabs | sidemenu) & optionnally connect app to Ionic Pro (Optional but recommended: https://dashboard.ionicjs.com)
$ ionic start --list
$ ionic start myApp tabs --type=angular
$ cd ./myApp
- Launch app in local host
$ ionic serve -p $PORT --no-livereload
NOTE:
If getting "Invalid Host Header", in: node_modules/webpack-dev-server/lib/Server.js
CHANGE if(this.disableHostCheck) return true; to return true;
https://community.c9.io/t/getting-started-with-ionic/1795
-
Click the “Preview” button in the top menu in the IDE, and choose “Preview Running Application”.
-
Adding new page
$ ionic generate
- Installing firebase
$ npm install firebase @angular/fire --save