Skip to content

nodkz/relay-northwind-app

Repository files navigation

OUTDATED

If somebody somebody wants take care about this demo - please open an issue. And I'll grant your permissions. Thanks.

Northwind demo app (on Relay Modern)

This is a true story. The events depicted took place in Northwind in 1996-1998. At the request of the survivors, the names have been changed. Out of respect for the dead, the rest has been told exactly as it occurred. ©Fargo

This is application shown Component-Based approach on full power 💪💪💪.

Build using React, Relay Modern, GraphQL, React Router 4.

Live DEMO

Live GraphQL server DEMO

Internally implements many cool things:

  • Connections with infinite lists and filtering
  • Running Relay queries from component (not via routing)
  • Display loaders when fetching data
  • Build on top of graphql-compose auto-generated GraphQL schema from mongoose (MongoDB).
  • Eslint with GraphQL fragment validation, Webpack 3, Babel 7.
  • Static analysis with Flowtype
  • Many thanks to @taion for react-bootstrap

relay-northwind-app

Data models

This APP has 8 basic types, which has many cross-relations (via one-to-one, arrays, connections):

  • category
  • customer
  • employee
  • order
  • product
  • region
  • shipper
  • supplier

Previous Relay versions

Working example on Relay Classic can be found in classic branch, Relay Compat in compat branch.

About server-side (GraphQL + MongoDB)

GraphQL server source code (graphql-compose inside). Also you may find all data in JSON and CSV formats for your needs.

Thanks to

License

MIT

About

A complex React, Relay, GraphQL demo app. Online demo:

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published