Coder Social home page Coder Social logo

shaunsaker / covid-19-south-africa-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 12.68 MB

A mobile app that displays the latest COVID-19 stats of any country and sends push notifications when the South African stats are released👨‍⚕️

JavaScript 1.67% TypeScript 84.91% Starlark 0.36% Java 4.03% Objective-C 2.81% Ruby 6.23%
covid-19 firebase react-native typescript

covid-19-south-africa-app's Introduction

covid-19-south-africa-app

Development

  1. Clone the project:
git clone https://github.com/shaunsaker/covid-19-south-africa-app.git
  1. Install npm dependencies:
yarn
  1. Install pods:
cd ios
pod install
  1. Add your Firebase* config files to ./ios/GoogleService-Info.plist and ./android/app/google-services.json.

  2. Run the app:

yarn ios
yarn android

*Firebase

The project uses Firebase for it's backend. To get the app running locally you will need to:

  1. Create a project in Firebase.

  2. Enable the Cloud Firestore.

  3. Add data to the Cloud Firestore with the following schema:

type DateField = string; // e.g. 2020-04-01T17:20:27.038Z
type DocumentId = string; // e.g. 02-04-2020

interface DocumentBase {
  dateAdded: DateField;
  dateCreated: DateField;
  href: string;
}

interface ConfirmedCaseDocument extends DocumentBase {
  confirmedCases: number;
}

interface DeathCaseDocument extends DocumentBase {
  deaths: number;
}

interface RecoveryCaseDocument extends DocumentBase {
  recovered: number;
}

interface TestCaseDocument extends DocumentBase {
  tests: number;
}

interface Collections {
  confirmedCases: {
    [key: DocumentId]: ConfirmedCaseDocument;
  };
  deathCases: {
    [key: DocumentId]: DeathCasesDocument;
  };
  recoveries: {
    [key: DocumentId]: RecoveryCaseDocument;
  };
  tests: {
    [key: DocumentId]: TestCaseDocument;
  };
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.