• Stars
    star
    259
  • Rank 152,865 (Top 4 %)
  • Language
    TypeScript
  • Created almost 5 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Advanced, but minimalistic Next.js and Apollo starter

next-advanced-apollo-starter

Advanced and minimalistic Next.js and Apollo starter

What's included β€’ Getting Started β€’ Apollo usage β€’ Tests β€’ Docker usage

What's included

Features

  • Latest Next.js version.
  • Latest packages updates.
  • GraphQL Apollo client with built-in cookie-based JWT token authentication.
  • Works both via Client-Side Rendering and Server-Side Rendering;
  • TypeScript environment.
  • Normalize.css included.
  • No custom server.

Developer experience

Getting started

No extra knowledge needed to get started, see Next.js documentation.

GraphQL Code Generation

Generated interfaces for co-located .graphql files. See the example.

yarn codegen

Apollo usage

Tests

Jest is a great tool for testing. To run tests simply use test script from package.json:

yarn test

Pretty much everything you need to know about project structure, SSR, etc., you can find in the official Next.js documentation.

Docker usage

To build and run Dockerized production-ready container, run:

docker-compose up --build