Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Fetch Covid-19 Data for the US from JHU Covid-19 County Cases and transform them into the JSON files with paths that can be rendered as sparklines by the CovidPulse app.

Notifications You must be signed in to change notification settings

vannizhang/covid19-trend-map-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CovidPulse Data

Fetch Covid-19 Data for the US from JHU Covid-19 County Cases and transform them into the JSON files with paths that can be rendered as sparklines by the CovidPulse app.

Instructions

  • Before we begin, make sure you have a fresh version of Node.js and NPM installed. The current Long Term Support (LTS) release is an ideal starting point.

  • To begin, clone this repository to your computer:

    https://github.com/vannizhang/covid19-trend-map-data.git
  • From the project's root directory, install the required packages (dependencies):

    npm install
  • Now you can run the command to download and convert the JHU covid-19 data into .JSON files the CovidPulse App can use:

    npm run download-covid19-data
    
    # use the development mode (shows more detailed messages to help debugging) on local testing environment 
    npm run download-covid19-data-dev
  • The previous step should generate five .JSON files into the ./public directory:

    • the us-counties-paths.json and us-states-paths.json are data that will be used to plot the sparklines in the CovidPulse app.

    • latest-numbers.json is a lookup table (FIPS code as key) the CovidPulse app uses to show the Tooltip

    • the us-counties.json and us-states.json contains the raw numbers from JHU services to help debug and QA and are not being used by the CovidPulse app.

  • Now you can go to the repository for the CovidPulse app and replace the .JSON files in the static folder using the these ones made by yourself.

About

Fetch Covid-19 Data for the US from JHU Covid-19 County Cases and transform them into the JSON files with paths that can be rendered as sparklines by the CovidPulse app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published