Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.8 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.8 KB

React Relay Modern Starter Kit

This expanded starter kit is based on Facebook's Relay Starter Kit and the React Hot Loader Minimal Boilerplate.

This kit includes an front-end dev server, and references an external service (on port 4000), and a transpiler that you can use to get started building an app with Relay. For a walkthrough with a slightly larger schema, see the Relay tutorial.

Docs

This version of the boiler plate code includes a handful of assembled components to help get started on your application faster:

  • Relay "Modern": Latest release of relay with many improvements.
  • react-md: A Material Design React Component library
  • graphql-js-schema-fetch: A library for fetching graphql schema from a remote server
  • Found-Relay: Relay "Modern" routing layer (currently in prerelease)
  • CSS, SASS & style Webpack Loaders
  • Yarn: New package manager from Facebook with better dependency handling and less errors.
  • React Hot Loader: Support for automatically loading code changes to the dev server.

Try it out

# First, start compatible GraphQL API server on port 4000

# Then build the project
yarn

# Cache the GraphQL schema from the back-end API
yarn run fetch-schema

# Start your hot-reloading dev server
yarn dev