Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

[Decommissioned] Dashboard for projecting Covid-19 spread in prisons and modeling hypothetical scenarios

License

Notifications You must be signed in to change notification settings

Recidiviz/covid19-dashboard

Repository files navigation

Recidiviz Covid-19 Dashboard

An application for modeling the impact of COVID-19 in jails and prisons.

Decommissioned

As of February 1, 2022, this application has officially been turned down.

No further updates are planned in this application, including security patches.

If you need additional support modeling COVID-19 outbreaks, or monitoring release cohort outcomes, please contact our team.

If you are hoping to run this application yourself (and we really hope there is no cause to do so!), read on below for instructions on working with the frontend. Make sure to check out the backend/README for instructions on working with the backend.

Setting up

npm install -g yarn
yarn install

Development

yarn dev

Serves from http://localhost:8000/.

If you want to a specific port, like 1234, just add --port 1234.

Environment variables

Default environment variables (for feature flags, etc) for local development can be found in .env-example. You should copy them to .env.development (untracked) to properly configure your development environment; this file will be consumed by Gatsby dev builds. Edit your local .env.development as needed and commit new env vars to the example file when appropriate.

Environment variables for deployments are configured by Now. Let admins know when there are new env vars that need to be set for Preview or Production deployments. (You can test them in production builds locally with a .env.production file, also untracked.)

Production

yarn build

Built files can be found in public/.

An easy way to test out the built files:

yarn serve

If you want to a specific port, like 1234, just add --port 1234.

Authentication

Authentication and authorization are provided by Auth0.

The Auth0 tenant for the production, hosted instance of this app is controlled by Recidiviz. If you are working with Recidiviz on the production instance, reach out to [email protected] about receiving your log in credentials.

Tests

Automated tests can be run with Jest and React Testing Library. Should you need to inspect the Jest configuration, you will find it in /package.json and /setupTests.tsx.

yarn test  # run the entire test suite
yarn test --watch  # re-run tests as you make changes. Pass any Jest options you like

Miscellaneous

About

[Decommissioned] Dashboard for projecting Covid-19 spread in prisons and modeling hypothetical scenarios

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published