The Wayback Machine - https://web.archive.org/web/20201108234836/https://github.com/juffalow/react-relay-example
Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

React + Relay Example

List of Quotes with Authors implemented in React + Relay.

You can use either PHP or Node as a backend.

How to run the project

Installation

yarn install

# or if you use npm

npm install

Configuration

Create src/config.ts or rename src/config.example.ts and make sure it contains your server's graphql endpoint url:

export default {
  graphql: 'http://localhost:3013/graphql',
};

Download GraphQL schema

For this, you need to have graphql-cli installed.

graphql get-schema --project quotes -e default

Build / transform components which are using graphql / relay

yarn run relay

Start the project

yarn start

Old version

Working version of React + Relay application written in JavaScript:

License

MIT license

You can’t perform that action at this time.