Started out making a data visualization site using Phoenix LiveView and react: trackingcovid.com
But found someone else who was doing it better: https://covid-19charts.com
So we decided to work together, I am focusing on the API. I want to add a GraphQL endpoint soon.
https://github.com/avencera/covid
14 Likes
Johns Hopkins dudes has done a pretty nice job with their dashboard. Just in case you haven’t checked it out yet. Stay safe, be responsible.
from Italy.
5 Likes
I added a GraphQL endpoint to it using absinthe. This was my first time working with GraphQL. The experience was pretty good. Thanks @benwilson512 and @bruce
However the GraphQL endpoint is much slower than the REST endpoint for getting cases and predicated cases. I haven’t had much of a chance to figure out why.
For the people with lots of experience with GraphQL if I’m doing anything obviously dumb please point it out for me. Thanks!
https://github.com/avencera/covid/blob/master/lib/covid_web/schema.ex
EDIT: I love elixir I was able to quickly and easily add a cache to make it faster:
Add cache for day cases and predictions · avencera/covid@f167f49 · GitHub