Skip to content

africa-covid-19-response-toolkit/diaspora-app

Repository files navigation

Connect to Firebase

Web Setup

  • On the Firebase console, add a new web application and enter your projects details.

  • Got to Firebase Projects settings and select your web app.

  • From the Firebase SDK snippet, select Config options.

  • Copy the Firebase config and add it to following location /src/api/firebase/config/index.js

  const firebaseConfig = {
    apiKey: "xxx",
    authDomain: "xxx",
    databaseURL: "xxx",
    projectId: "xxx",
    storageBucket: "xxx",
    messagingSenderId: "xxx",
    appId: "xxx",
    measurementId: "xxx"
  };

  export default firebaseConfig;

Steps

  1. Install Expo CLI
  2. Start expo using this command NODE_OPTIONS=--max-old-space-size=4096 expo start --ios

iOS Setup

  • On the Firebase console, add a new iOS application and enter your projects details.

  • Download the GoogleService-Info.plist file and place it inside of your project at the following location: /src/api/firebase/config/GoogleService-Info.plist.

Android Setup

  • On the Firebase console, add a new Android application and enter your projects details.

To generate Debug signing certificate SHA-1 (optional) use the command below or follow the following instruction. This step is not required unless you want to distribute your app using Firebase App Distribution.

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

On the Firebase console, add a new Android application and enter your projects details.

  • Download the google-services.json file and place it inside of your project at the following location: /src/api/firebase/config/google-services.json.

Run development server

  • Install dependencies
yarn install
  • Start app in a specific platform, platform could be web, ios or android
yarn <platform>

Known bugs

About

A symptom tracker app built in Expo - iOS/Androind/Web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published