React + Apollo codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and GraphQL API.
This codebase was created to demonstrate a fully fledged fullstack application built with React + Apollo including CRUD operations, authentication, routing, pagination, and more.
You can view a live demo over at https://realworld-react-apollo.herokuapp.com/
To get the frontend running locally:
- Clone this repo
npm install
to install required dependenciesnpm start
to start the development server
For convenience, we have a live GraphQL API server running at https://realworld-graphql.herokuapp.com/graphql for the application to make requests against. You can view the GraphQL API spec here which contains the schema for the server.
The source code for the backend server (available for Ruby on Rails) can be found in the this repo.
If you want to change the API URL to a local server, simply set REACT_APP_GRAPHQL_URL
env variable to another URL.
REACT_APP_GRAPHQL_URL=http://localhost:3000/graphql yarn start