zeing / saleor-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:TypeScript 84.4%Language:CSS 12.9%Language:JavaScript 2.8%