Boilerplate setup for Next.js / Now + Hasura + GraphQL Codegen + TypeScript + next-auth
- Run
yarnfrom root - Run
yarn setupfrom root - Create .env files from templates
- Set up your schemas in Hasura cloud
- For auth to work, add a data type
userwithemailandid - For demo CRUD to work:
- add a data type
postwithcontentandid - Make
postSELECT publicly available by allowing roleanonymousaccess - Add
HASURA_GRAPHQL_UNAUTHORIZED_ROLE=anonymousto Hasura Env Vars
- add a data type
- For auth to work, add a data type
- Add your graphql queries in
packages/data-lib/data-sources/hasura/graphql/queries
- i18n - https://github.com/isaachinman/next-i18next
- Testing - Testcafe / cypress
- Metatags / SEO - https://github.com/garmeeh/next-seo
- State - redux / mobx state tree ? context api? hookstate looks good but might not be maintained