TrackingCovid API

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. :vulcan_salute: 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!

EDIT: I love elixir I was able to quickly and easily add a cache to make it faster:
https://github.com/avencera/covid/commit/f167f4929a05acc76f509f4592e70820c5d21783