A minimalistic boilerplate to start developing Next.js applications with Saleor.
🤏 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
.env
file based on.env.example
:
cp .env.example .env
-
Replace the
SALEOR_API_URL
environment 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! 🎉