This repo will help you setup a small React app that talks to a GraphQL endpoint.
The get up and running you have to complete these steps:
- Clone this repo
- Create a free Hasura project and deploy it to Heroku
- Import a database structure and some sample contents
- Generate a GraphQL Schema using Hasura
- Explore the data using Hasura's playground (GraphiQL)
- Configure the Apollo to talk to the graphql endpoint
We need a GraphQL endpoint to talk to. We will quickly setup our own using Heroku and Hasura.
To setup something similar to this or a new project, you just need a few steps
- Create a new React app (if you haven't already)
npm install apollo-boost @apollo/react-hooks graphql
- basically just follow the steps here: https://www.apollographql.com/docs/react/get-started/