Skip to content
Projekte

nikitowsky/next-advanced-apollo-starter

Auf GitHub ansehen

Über uns

Advanced, but minimalistic Next.js and Apollo starter

Web- und App-Entwicklung

So werden diese Zahlen gemessen

What you can do

  • Latest Next.js version with App Router.
  • GraphQL Apollo client with @apollo/client-integration-nextjs.
  • Works with React Server Components and React Client Components (with or without SSR).
  • TypeScript environment.

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

next-advanced-apollo-starter

Advanced, but minimalistic Next.js and Apollo starter

What's included • Getting Started • Apollo usage • Testing

What's included

Features

Developer experience

Getting started

Prerequisites

  • Node.js 18.x or later
  • npm (or yarn/pnpm)

Installation

  1. Clone the repository:
git clone [email protected]:nikitowsky/next-advanced-apollo-starter.git
cd next-advanced-apollo-starter
  1. Install dependencies:
npm install
  1. Create a .env.local file with your GraphQL endpoint:
# Example URI, use link to your GraphQL API
NEXT_PUBLIC_GRAPHQL_URI=https://graphqlzero.almansi.me/api
  1. Start the development server:
npm run dev

For more information, see Next.js documentation.

GraphQL Code Generation

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

To generate TypeScript interfaces based on GraphQL schema and used queries/mutations:

npm run codegen

Apollo usage

Testing

This project uses Vitest for testing. To run tests:

npm run test

For more about project structure, React Server Components (RSC), React Client Components (RCC), etc., see the official Next.js documentation.

Ähnliche Projekte entdecken

Wird geladen…