A GraphQL implementation in React using Apollo.
This repo is a client side implementation of GraphQL and is connected to a server side implementation repo. Setup the server before setting up the client.
Branch matching:
Client | Server |
---|---|
develop | master |
subscriptions | subscriptions |
update | master |
subs-b | subscriptions |
Articles:
- Implementing GraphQL in React using Apollo - Use branch develop(default)
- Realtime GraphQL UI Updates in React with Apollo(Yet to be published) - Use branch subscriptions for refetch part, subscriptions for update part and subs-b for subscriptions part.
Note: Configure the port here to match the cors origin port on the server
git clone git@github.com:kimobrian/GraphQL-React-Apollo.git
cd GraphQL-React-Apollo
yarn # alternatively npm install
yarn start # Start the Application.