Installation

IonFire is an Ionic 3 mobile app and you'll need Cordova to package it for iPhone and Android.

Prerequisites:

  1. make sure you have NodeJS v6 or higher installed and Npm v3 or higher
  2. you'll also need Ionic and Cordova installed globally: npm install -g ionic cordova

Installation:

  1. unzip the archive
  2. install the necessary npm packages: cd ./mobile && npm install
  3. create www folder inside ./mobile folder
  4. install cordova platforms and plugins: cordova prepare This will create the platforms and plugins folder

(you can run the steps above with one command: cd ./mobile && npm install && mkdir www && cordova prepare)

Setup integration with Google Firebase real-time database:

  1. Sign-up for Google Firebase - it's free (skip this step if you already have an account)
  2. Create a new project in Google Firebase (click on Add Project and fill-in a name)

  3. rename ./mobile/src/app/app.config_sample.ts to app.config.ts

  4. in Firebase, click Add Firebase to your web app

  5. copy the config values and paste them in firebaseConfig (in app.config.ts)

  6. set the following rules in the Realtime Database > Rules to make sure users of the mobile app can only read the data from the database

You can now run the app using: npm run ionic:serve

results matching ""

    No results matching ""