pietgk / react-relay-example

Example project how to use React, Relay and TypeScript

Home Page:https://quotes.juffalow.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:3010/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

About

Example project how to use React, Relay and TypeScript

https://quotes.juffalow.com/

License:MIT License


Languages

Language:TypeScript 87.7%Language:HTML 6.3%Language:JavaScript 4.5%Language:Dockerfile 1.5%