Ionic & firebase

Running Ionic App/Website


in Visual Studio Code

  1. file>open folder>select project folder (normally placed in C:\Users\{user name}\{project folder name})

  2. click on terminal>new terminal

  3. if the terminal type on the right is powershell, click on down arrow beside the + icon,and select command prompt

  4. make sure terminal type on bottom right is cmd or node

  5. type in this command ---> ionic serve

  6. wait browser to popup the app/website

  7. if no popup for a long time, press enter

Installing Ionic App/Website


  1. open command prompt,paste the commands below,1 by 1

  2. npm install -g @angular/cli@latest

  3. npm install ionic-angular@latest --save

  4. npm install -g cordova ionic

Missing or insufficient permission error


in Firebase console

  1. On the left sidebar of google console,click on Firestore Database

  2. Click on rules

  3. Change date to any future date. Error happened due to permission for read and write date already passed.

  4. Click publish