Skip to content

Code powering Covid Act Now - A site urging Public leaders & health officials to take action now to prevent the spread of COVID-19

License

Notifications You must be signed in to change notification settings

act-now-coalition/covid-act-now-website

Repository files navigation

Covid Act Now

This is the code repository for https://covidactnow.org/.

Overview

A single page react app, created via create-react-app. Routing through react-router.

Set Up

Make sure you have node installed. nvm is recommended to manage your node installation so you can easily switch between versions. node v16.x works well. Once nvm is installed:

nvm install v16
nvm alias default v16

Get the repo from github

git clone https://github.com/act-now-coalition/covid-act-now-website.git

Then install the correct dependencies locally via yarn.

yarn install

Then start the local dev server:

yarn start

The website should be thriving on http://localhost:3000/

Code should be automatically linted and formatted on commit, but to manually run the linter (which also reformats code with prettier) you can run:

yarn lint-fix

Testing

Testing is run via jest.

yarn jest

Updating the Data Snapshot, Map Colors, etc.

The website renders data that's read from an API data snapshot (e.g. https://data.covidactnow.org/snapshot/123/v2/). Every day we update the website to point at the newest data snapshot. As part of this we also must update our map colors to reflect the new status of states / counties, etc.

This is all automated (to do the updates and generate a Pull Request). To kick off the process you must get a personal access token, and run:

export GITHUB_TOKEN=<YOUR PERSONAL GITHUB TOKEN>
./tools/update-snapshot.sh <snapshot>

About

Code powering Covid Act Now - A site urging Public leaders & health officials to take action now to prevent the spread of COVID-19

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published