Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apurva-modi/coronacase-tracker

A simple react based COVID 19 tracker using material-UI, react-charts, and react's useEffect and useState to fetch data from Covid-19-Api by Odi.
https://github.com/apurva-modi/coronacase-tracker

covid-19-api covid19 frontend material-ui react

Last synced: 27 days ago
JSON representation

A simple react based COVID 19 tracker using material-UI, react-charts, and react's useEffect and useState to fetch data from Covid-19-Api by Odi.

Awesome Lists containing this project

README

        

# Covid-19 Cases Tracker

This [React based covid19 stats](https://covid-19-74e56.web.app/) web application using
[Odi aka mathdroid covid19 API](https://github.com/mathdroid)

## Usage

1. Clone

```bash
git clone https://github.com/apurva-modi/coronacase-tracker.git
```

2. Install deps (`yarn`, `npm install`)

3. To run it on localhost.

```bash
npm start
```

## React Components

- Cards (for demonstrating Infected, Recoverd and Deaths stats)
- Uses Card, CardContent, Typography and Grid from Material-UI
- CountryPicker (for selecting countries)
- uses react's useEffect and useState to fetch countries from the API.
- Charts (based on selected country shows the country's Covid19 stats)
- Uses react's useEffect and useState to set Daily data to Line and Bar chart based on fetched countries.

Credit: @JavaScript Mastery

# Global Cases

![alt text](assests/global.png "country picker as global")

# Country Stats

![alt text](assests/usa.png "USA covid case stats")