This is a Next.js project bootstrapped with create-next-app.
- Go to your Hypgraph account and generate the query in api playground
- Copy and paste generated query to
app/api/graphql/queries.graphql - Run
npm run generate-graphqlto generate code (types, handlers, hooks) for you automagically
- Go to your Hypgraph account and generate the mutation in api playground
- Copy and paste generated query to
app/api/graphql/mutations.graphql - Run
npm run generate-graphqlto generate code (types, handlers, hooks) for you automagically
Install packages with proper Node.js version:
nvm use && npm iCopy required envs for local developement:
cp .env.example .env.localRun the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
- In case you are creating new folder with Tailwind classes and they don't appear - make sure you add it to the
contentoftailwind.config.jsfile