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.
Most Liked
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.
from Italy.
Last Post!
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
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









