Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

saleor/saleor-next-starter

Repository files navigation

Next js + Saleor (1)

Saleor Next Starter

A minimalistic boilerplate to start developing Next.js applications with Saleor.

Motivation

🤏 Bare bones: Useful for prototyping or building your stack from scratch.

💪 Typesafe: Get productive with code generation and types.

Stack:

Quickstart

  1. Create a new repository from this template ("Use this template")
  2. Create .env file based on .env.example:
cp .env.example .env

Note: Currently, only .env is supported. .env.local and any other variation will not work with GraphQL Code Generator.

  1. Replace the NEXT_PUBLIC_SALEOR_INSTANCE_URI environment variable with the address of your Saleor instance.

  2. Install the dependencies:

pnpm i
  1. Generate the types based on GraphQL schema:
pnpm codegen
  1. Start the development server:
pnpm dev