Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.32 KB

File metadata and controls

29 lines (19 loc) · 1.32 KB

Grafbase ⨯ React Apollo

Join our Community

Getting Started

  1. Run npx degit grafbase/grafbase/examples/react-apollo grafbase-with-react-apollo to clone this example
  2. Change directory into the new folder cd grafbase-with-react-apollo
  3. Run cp .env.example .env
  4. Open .env in your code editor and provide your Grafbase API endpoint, API key, a issuer URL, and JWT secret.
  5. Run cp grafbase/.env.example grafbase/.env and provide the same issuer and secret you have in your root .env
  6. Run npm install or yarn install to install dependencies
  7. Run npx grafbase@latest dev in your terminal
  8. In another terminal, run npm start or yarn start and visit http://localhost:3000

Learn More About Grafbase

To learn more about Grafbase, take a look at the following resources:

  • Grafbase - learn about Grafbase features and API.

To learn more about Next.js, take a look at the following resources:

Run on Codesandbox

Develop with Codesandbox