https://github.com/dostu/react-apollo-realworld-example-app
Exemplary real world application built with React + Apollo https://realworld-react-apollo.herokuapp.com
https://github.com/dostu/react-apollo-realworld-example-app
react-apollo realworld realworld-frontend
Last synced: 6 months ago
JSON representation
Exemplary real world application built with React + Apollo https://realworld-react-apollo.herokuapp.com
- Host: GitHub
- URL: https://github.com/dostu/react-apollo-realworld-example-app
- Owner: dostu
- Created: 2018-07-13T22:26:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T20:16:20.000Z (about 4 years ago)
- Last Synced: 2024-11-01T22:38:08.379Z (11 months ago)
- Topics: react-apollo, realworld, realworld-frontend
- Language: JavaScript
- Homepage:
- Size: 490 KB
- Stars: 91
- Watchers: 5
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 
> ### React + Apollo codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and GraphQL API.
### [Demo](https://realworld-react-apollo.herokuapp.com/) [RealWorld](https://github.com/gothinkster/realworld)
This codebase was created to demonstrate a fully fledged fullstack application built with React + Apollo including CRUD operations, authentication, routing, pagination, and more.
# Getting started
You can view a live demo over at https://realworld-react-apollo.herokuapp.com/
To get the frontend running locally:
1. Clone this repo
2. `npm install` to install required dependencies
3. `npm start` to start the development server### Making requests to the backend API
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](https://github.com/dostu/rails-graphql-realworld-example-app/blob/master/GRAPHQL_API_SPEC.md) 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](https://github.com/dostu/rails-graphql-realworld-example-app).
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`