Skeleton app for prototyping with react + relay + react-router-relay. The development environment uses webpack + webpack-dev-server + babel. To use follow next steps.
npm install
The repo is pre configured for http://localhost:5000/graphql
, in order to change the endpoint, edit the following files:
scripts/updateSchema.js
- script responsible for fetching the schema from the graphql endpoint and saving it indata/schema.json
to be used bybabelRelayPlugin.js
src/index.js
- configure theRelay.DefaultNetworkLayer
to the graphql endpoint
npm start
and navigate to http://localhost:8080/webpack-dev-server/
If you need to manually update the schema run
npm run updateSchema