Skip to content

kylekarpack/nextjs-starter-graphql

Repository files navigation

NextJS Starter GraphQL

A basic TypeScript starter for NextJS and Apollo Server/Client, with sensible defaults for linting and tests.

Getting Started

If you use Vercel and GitHub, simply click below to instantly create a copy of the repository and set up a new deployment

Deploy with Vercel

Live Demo

https://nextjs-starter-graphql.vercel.app/

Features

This starter features the following:

  • TypeScript
  • Apollo Server for GraphQL
  • CSS modules
  • Jest for tests
    • Testing Library for component tests
  • Linting set up with NextJS eslint
  • Prettier for formatting
  • Github Actions integration for build and test running

Quick Start

Install dependencies and run the development server

npm install
npm run dev

Scripts

npm run dev

Start the NextJS local development server

npm run build

Run a production build with optimizations

npm run start

Serve an existing production build

npm run test

Run all automated unit and component tests in the project

npm run lint / npm run lint:check

Run eslint to check for linting violations

npm run lint:fix

Fix any automatically fixable linting violations

npm run prettier / npm run prettier:check

Find any formatting violations

npm run prettier:fix

Fix any formatting violations

About

A NextJS starter with sensible defaults using GraphQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published