praveenperera

praveenperera

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

Most Liked

patrickdm

patrickdm

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.

Last Post!

praveenperera

praveenperera

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

Where Next?

Popular in Discussions Top

und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
joeerl
I’m playing with Elixir - It’s fun. I think @rvirding does give Elixir courses these days. Re: files and database - when I given Erlang ...
New
lucaong
Hello Elixir and Nerves community, I have been working for a while on an open-source embedded key-value database for Elixir, that I call...
230 14350 124
New
RudManusachi
What configs will make sense to put to runtime.exs? – A bit of how I configure apps: I have generic configs in config/config.exs, dev...
New
crispinb
On reading dhh’s latest The One Person Framework it strikes me that Phoenix with LiveView is already pretty much this. However, never hav...
New
paulanthonywilson
I like Umbrella projects and pretty much always use them for personal Elixir stuff, especially Nerves things. But I don’t think this is ...
New
shishini
I think this twitter post and youtube video didn’t get as much attention as I hoped I am still new to Elixir, so can’t really judge ...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement