rsnext/examples/with-reason-relay/README.md
2021-04-14 09:46:06 -05:00

1.5 KiB

Reason Relay Example

Reason Relay

This example relies on Prisma + Nexus for its GraphQL backend.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-reason-relay with-reason-relay-app
# or
yarn create next-app --example with-reason-relay with-reason-relay-app

Download schema introspection data from configured Relay endpoint:

npm run schema
# or
yarn schema

Run Relay ahead-of-time compilation (should be re-run after any edits to components that query data with Relay)

npm run relay
# or
yarn relay

Build and run the Relay project

npm run build
npm run dev
# or
yarn build
yarn dev

Deploy it to the cloud with Vercel (Documentation).