Giter Club home page Giter Club logo

covid19map.us's Introduction

Covid19Map.us

A zoomable, historical map of COVID-19 cases in the United States by county. This project is written in Svelte/JavaScript and makes extensive use of the mapping/visualization library deck.gl.

The dataset is provided by USAFacts.

Installation

This is a standard npm project. To install and run locally, make sure you have Node installed.

Clone from git:

git clone https://github.com/freedmand/covid19map

Enter the directory created and install with:

npm install

Running

Run the project with:

npm run dev

This will launch a server at http://localhost:3000 that you can visit to see the application running.

Building for production

Run the following command:

npm run build

The public folder will contain the static website that can then be deployed.

Data processing

To update the dataset, enter the preprocessing directory:

cd preprocessing

Visit the USAFacts dataset page and download the provided CSVs into the preprocessing folder. Also create/overwrite the file last_updated.txt within this same folder with a string containing the updated time that USAFacts provides, e.g. March 25, 2020, at 12:00 AM Pacific/3:00 AM Eastern Time.

Finally, run the processing script with:

python process.py

This will create a binary file called output.bin in the public directory that contains the map and data. When you refresh the web application it will pull this new data file.

covid19map.us's People

Contributors

freedmand avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cuulee

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.