/react-apollo-client-prefetching-example

A minimal React application which is powered by Apollo Client and GitHub's GraphQL API with prefetching data.

Primary LanguageJavaScript

react-apollo-client-prefetching-example

Build Status Slack Greenkeeper badge

A minimal React application using Apollo Client with GitHub's GraphQL API. As example Apollo Client's prefetching feature is implemented.

Installation

  • git clone git@github.com:the-road-to-graphql/react-apollo-client-prefetching-example.git
  • cd react-apollo-client-prefetching-example
  • npm install
  • add your own REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN in .env file
    • scopes/permissions you need to check: admin:org, repo, user, notifications
  • npm start
  • visit http://localhost:3000

Want to learn more about React + GraphQL + Apollo?