A minimalistic boilerplate to start developing Next.js applications with Saleor.
Warning
This repository is not longer maintained - go to https://github.com/saleor/examples for Saleor examples
π€ Bare bones: Useful for prototyping or building your stack from scratch.
πͺ Typesafe: Get productive with code generation and types.
- Next.js App Router with static data fetching
- GraphQL Code Generator
- TypeScript
- pnpm
- Create a new repository from this template ("Use this template")
- Create
.envfile based on.env.example:
cp .env.example .env-
Replace the
SALEOR_API_URLenvironment variable with the address of your Saleor instance. -
Install the dependencies:
pnpm i- Generate the types based on GraphQL schema:
pnpm generate- Start the development server:
pnpm dev- Enjoy! π
