Estimates of R.
A React application and an api for presenting graphs of estimated R values, based on case data from Her Majesty's Government.
Data comes from https://c19downloads.azureedge.net/downloads/json/coronavirus-cases_latest.json
You can see this at https://r.winter.cx
- Days with no data are assumed to have zero cases
- Case data is smoothed with a 7 day rolling average
- R is estimated from a day's 7 day case rolling average compared to the rolling average from 5 days previously, where 5 days appears to be the incubation period for the virus
All the important code is in api/src/covid.ts
.
One terminal in api
and one in app
.
In each do:
npm i
npm run build
npm start
Once it is all running you should be launched into your react dev server as usual.
docker build .