phil-ociraptor / sos-landing

Landing page for Summer of Shipping. (May evolve into much more than a landing page)
https://summerofshipping.com
12 stars 9 forks source link

Spike Hasura & GraphQL as a backend #36

Open justonsky opened 4 years ago

justonsky commented 4 years ago

Coming from the discussion in #21:

Objective

To explore the feasibility of using Hasura & GraphQL as our backend.

@phil-ociraptor originally proposed this idea coming off of our discussion of MongoDB in #24. Hasura can be used to spin up a backend pretty easily and the use of GraphQL really simplifies things (props to Phil for his talk on it a few weeks back 😉). This has a lot of potential to reduce development time, cut costs and provide an easy to use interface for our front-end developers and designers.

Collaborators

This will be owned by the data team: @esu2020 @pandevim @justonsky. Aniruddha and I are primarily exploring this solution.

Deliverable

A Hasura backend preloaded with data, with an appropriate schema and is queryable. Ani will do the primary setup, and we will go on from there.

pandevim commented 4 years ago

Further updates will be reflected in the hasura dashboard: https://sos-showcase.herokuapp.com/console GraphQL Endpoint: https://sos-showcase.herokuapp.com/v1/graphql

pandevim commented 4 years ago

Schema and Visualization: https://app.graphqleditor.com/so-s/showcase-website?visibleMenu=code Mock GraphQL API: https://app.graphqleditor.com/so-s/showcase-website?visibleMenu=faker Example query:

query RootQuery {
  projects {
    name
    categories
    mentors {
      id
      name
    }
  }
}