Skip to content

Instantly share code, notes, and snippets.

@ddallala
Last active November 11, 2018 02:12
Show Gist options
  • Select an option

  • Save ddallala/21f2ede229656c84f1af2c09db99f807 to your computer and use it in GitHub Desktop.

Select an option

Save ddallala/21f2ede229656c84f1af2c09db99f807 to your computer and use it in GitHub Desktop.
Instructions for running ionic in C9 IDE
  1. Install stable version of NodeJS (https://nodejs.org/en/) and set as Default
    $ nvm install v10.13.0
    $ nvm alias default v10.13.0
  1. Install the Ionic CLI
    $ npm install -g ionic
  1. 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
  1. 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

  1. Click the “Preview” button in the top menu in the IDE, and choose “Preview Running Application”.

  2. Adding new page

    $ ionic generate
  1. Installing firebase
    $ npm install firebase @angular/fire --save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment