about summary refs log tree commit diff
path: root/covid-uk
AgeCommit message (Collapse)AuthorFilesLines
2020-03-19 Update COVID-19 webpageWilliam Carroll9-51428/+67914
- Prefer hosting on sandbox.wpcarro.dev; I would prefer to host it at sandbox.wpcarro.dev/covid-19, but I haven't figure out how to use Nginx to do serve locations like /covid-19 yet. - Splice the src directory: When I develop locally and index.html exists within ./src, I cannot access ./node_modules because ./node_modules is in a parent directory. I could fix this if I used a bundler like Parcel or Webpack, but I do not want to set that up at this time. - Introduce Tailwind for CSS. This complicates my build a bit as well. For now, I'm including output.css even though ideally I should not version-control this file. I haven't figured out how to `yarn install` and run commands like `npx tailwindcss build styles.css -o output.css` in a Nix derivation yet. Hopefully I will learn and refactor this. - Add some content about why I made this chart - Add some content about some of my covid-19 predictions - Add a footer to the webpage - Delete timeseries.json and prefer fetching the published data instead
2020-03-19 Prefer live timeseries.jsonWilliam Carroll1-1/+1
When I was first developing this, and I attempt to access https://pomber.github.io/covid19/timeseries.json, the browser prevents me from reading the data because it violates the same origin policy. I'm learning more about CORS, and I'm going to try consuming this from... https://wpcarro.dev -> https://pomber.github.io ...instead of... http://localhost:8000 -> https://pomber.github.io ...because the http -> https protocol violates CORS. I will not know unless I try, so... bombs away.
2020-03-18 Create line chart of UK confirmed corona virus casesWilliam Carroll6-0/+51509
I was having trouble tracking the growth of corona virus cases in the UK. Thankfully someone is publishing some daily COVID data as JSON. I downloaded that data manually and plotted it using the chart.js library as a programming exercise with Mimi. Now I'm attempting to deploy to https://wpcarro.dev/covid-uk. TODO(wpcarro): Prefer the live API data instead my soon-to-be-stale downloaded.