nextjs-typescript-graphql-starter
nextjs-typescript-graphql-starter copied to clipboard
A Next.js starter with Typescript, Jest, GraphQL Apollo Server & Apollo Client v3 with graphql-codegen.
NextJS Typescript Boilerplate
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
huskyfor commit hooks - Testing with Jest and
react-testing-library
Deploy your own
Deploy the example using Vercel:
How to use
Use this template
Click the "green" button on the right

Download manually
Download the example:
git clone [email protected]: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
Run tests
yarn test
# or watching
yarn test --watch