Welcome to the React & GraphQL workshop! ☀️
In this workshop we are going to build a Twitter Lite application with React & GraphQL. The workshop material is divided into following:
- ⚙️ Setup GraphQL Server
- 🍎 Define GraphQL Queries
- 🥑 Define GraphQL Mutations
- 🔑 Access Control & Authorization
- 🎛 Setup Apollo Client
- 🥝 GraphQL Queries in React
- 🍇 GraphQL Mutations in React
You can try the finished app here.
git clone https://github.com/glennreyes/react-graphql-workshop.git
cd react-graphql-workshop
yarn
Move to the server folder:
cd server
Start server in dev/watch mode. This will re-run the server everytime you make changes in the source.
yarn dev
Move to the client folder:
cd client
Start the app with:
yarn start
- 1 – Setup the GraphQL server
- 2 – Create queries for
User
andTweet
- 3 – Create mutations for
User
andTweet
- 4 – Access control & Authorization
- 5 – Setup Apollo Client
- 6 – Queries in React
- 7 – Mutations in React