Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kassens/relay-cra-example
Example app how to use Relay with Create React App
https://github.com/kassens/relay-cra-example
Last synced: about 1 month ago
JSON representation
Example app how to use Relay with Create React App
- Host: GitHub
- URL: https://github.com/kassens/relay-cra-example
- Owner: kassens
- Created: 2018-08-16T07:15:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T19:13:32.000Z (about 2 years ago)
- Last Synced: 2024-10-23T10:07:28.801Z (about 2 months ago)
- Language: JavaScript
- Size: 177 KB
- Stars: 88
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
This is an example how Relay since 1.7.0-rc.1 and Create React App with `react-scripts` since 2.0.0 can be used to build a Relay powered app without ejecting.
It uses an example Pokemon GraphQL server from https://graphql-pokemon.now.sh/ as the endpoint.
## Available scripts
- `yarn install`: install dependencies
- `yarn start`: start the webserver
- `yarn fetch-schema`: download and write the schema to `scripts/schema.graphql` to be used for the compiler
- `yarn run compile-graphql`: compile GraphQL artifacts after you made changes