CostaRico / graphql-relay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:JavaScript 94.1%Language:CSS 4.0%Language:HTML 1.9%