Live demo: https://nextjs-typescript-graphql-starter.vercel.app
Bootstrap a developer-friendly NextJS app configured with:
- Typescript
- Apollo Server creates your GraphQL API
- GraphQL code generator automatically generates Apollo Hooks, HoC, TS types
- Linting with ESLint
- Formatting with Prettier
- Linting, typechecking and formatting on by default using
husky
for commit hooks - Testing with Jest and
react-testing-library
Deploy the example using Vercel:
Click the "green" button on the right
Download the example:
git clone git@github.com:renyuanz/nextjs-graphql-ts-codegen-boilerplate.git my-next-project
cd my-next-project
Install it and run:
npm install
npm run dev
# or
yarn
yarn dev
yarn test
# or watching
yarn test --watch