Skip to main content

Command Palette

Search for a command to run...

⚙ React Covid-19-tracker-clone

Updated
2 min read
⚙ React Covid-19-tracker-clone
L

French software engineer building a new life in Japan. My journey here is a big challenge—from learning the language to navigating the tech scene. I use this blog as a space to share what I'm learning, both in tech and in life.

React Covid-19-tracker Clone

image.png

Follow along with the youtube tutorial 🔴 Build a COVID-19 Tracker with REACT JS for Beginners (React Hooks and Material UI) and set up the firebase app.

What I have learned?

  • Make async API resquest with fetch
  • Use javascript npm library like chartjs, numeral and leaflet
  • React modules react-leaflet
  • Integrate open API disease.sh
  • Integration of Firebase for hosting
  • Integration of Material ui (https://material-ui.com/)

Use case with Singapore

Total cases

image.png

Total recovered

image.png

Total deaths

image.png

Steps

TODO

Create react app sample and start the app

npx create-react-app covid-19-tracker
cd covid-19-tracker
npm start

Components

image.png

  • App
    • InfoBox
    • Table
    • LineGraph

Deployment

  • Install Firebase for backend with npm i firebase

  • log in to the app with firebase firebase login

  • Deploy firebase with the following command in the console

firebase init
Enter yes to proceed
? Hosting: Configure and deploy Firebase Hosting sites
? Use an existing project
? covid-19-tracker-cfb05 (covid-19-tracker)
? What do you want to use as your public directory? build
? Configure as a single-page app? Yes
  • Clean and create the version to deploy with npm run build
  • After any update, run the command again and deploy with firebase deploy
15 views

⚙ Technical

Part 7 of 20

In this series, I gather data on IT concepts and I come back step by step on how I made a project, introduction to a new language/framework, how to deploy on a specific platform, how to use a library.

Up next

⚙ React Discord-clone

React Discord Clone Follow along with the youtube tutorial 🔴 Build a Discord clone with REACT.JS for beginners! (With REDUX) and set up the firebase app. The clone is limited to simple multiple channels messaging app. What I have learned? CSS mod...

More from this blog

L

LPM Blog

194 posts

日本でのキャリアを切り拓く私の挑戦の記録です。

ここでは、私の就職活動の道のり、技術的な学び、そして異文化で働くことの喜びと苦労を共有していきます。

この挑戦を通じて、ITエンジニアとしての成長を皆さんにお見せできれば幸いです。