• Stars
    star
    983
  • Rank 46,580 (Top 1.0 %)
  • Language
    TypeScript
  • License
    BSD 3-Clause "New...
  • Created over 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.

Nextjs Storefront

Next.js Storefront

Next.js Storefront: Your open-source frontend starter pack for building performant e-commerce experiences with Saleor.

Saleor Checkout: Extensible Next.js checkout application and payment integrations powered by Saleor API.

Motivation

🏎️ modern & fast: The project utilizes all the best practices for e-commerce, like SSR, ISR, and image optimization.

πŸ’³ integrated payments: Reduce the purchase friction by taking advantage of integrations with modern payment providers such as Adyen, Mollie or Stripe.

πŸ› οΈ easily customizable: TailwindCSS can be easily extended and tweaked, or completely replaced with your favorite CSS solution.

πŸ‘Œ works out-of-the-box: Pre-configured tools built with DX in mind.

Stack

  • Next.js
  • TypeScript
  • GraphQL with Apollo Client
  • Tailwind CSS
  • Turborepo
  • Saleor Checkout

Quickstart

Supercharge your development with our CLI tool and free developer account at Saleor Cloud. To download and install Saleor CLI, run the following command:

npm i -g @saleor/cli

Learn more about Saleor CLI

Set up your local storefront development environment by running the storefront create command with --demo attribute. It will create a fresh clone, install dependencies and create a Saleor instance in the Saleor Cloud. The backend will be set to the newly created Cloud instance.

saleor storefront create --demo

You can also spawn your local storefront development environment without using the --demo attribute. It will create a fresh clone and install dependencies. The default configuration uses the master staging environment of the Saleor Cloud as a backend.

saleor storefront create

Development

First install pnpm (an alternative to npm, focused on performance) globally:

npm install -g [email protected]

Note

react-storefront requires version 7.11.0 of pnpm to run properly, using newer versions won't work

Note You might also consider using proto for managing your pnpm and node versions across different projects. This repository has a configuration for proto.

Then install dependencies:

pnpm i

To start the servers, run:

pnpm dev

The command will boot up 4 applications running on different ports.

Read more about development in docs/development.md.

If you have any issues with setting up the app please refer to our FAQ

Payment gateways

Saleor App Checkout supports three configurable payment gateways:

Mollie

Adyen

Stripe

For further information, please go to docs/payment/index.md.

Deployment

Read Vercel deployment guide in docs/vercel.md

FAQ

Read FAQ in docs/faq.md

More Repositories

1

saleor

Saleor Core: the high performance, composable, headless commerce API.
Python
20,676
star
2

saleor-dashboard

A GraphQL-powered, single-page dashboard application for Saleor.
TypeScript
832
star
3

saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
TypeScript
768
star
4

saleor-platform

All Saleor services started from a single repository with docker-compose.
640
star
5

saleor-sdk

Deprecated! See the announcement below. JavaScript/TypeScript SDK for building e-commerce experiences and checkouts with Saleor API.
TypeScript
129
star
6

saleor-docs

Saleor documentation.
JavaScript
106
star
7

apps

A central space for Saleor Apps, integrations, and the App Store πŸš€
TypeScript
105
star
8

macaw-ui

MacawUI: an official UI design kit for Saleor
TypeScript
100
star
9

cli

Command-line interface allowing interaction with Saleor Cloud environments.
TypeScript
69
star
10

saleor-app-template

Your boilerplate for new Saleor Apps. Batteries included.
TypeScript
62
star
11

app-sdk

SDK for building great Saleor Apps
TypeScript
46
star
12

saleor.io-learn

The Saleor Tutorial content. Learn how to create production-grade Saleor storefronts with React and Next.js. https://saleor.io/learn
39
star
13

saleor-app-payment-adyen

TypeScript
36
star
14

saleor-app-slack

TypeScript
29
star
15

saleor-next-starter

TypeScript
27
star
16

saleor-checkout

Migrated into a monorepo: https://github.com/saleor/react-storefront | The first fully open source and production-ready checkout experience.
TypeScript
22
star
17

saleor-app-klaviyo

TypeScript
20
star
18

auth-sdk

TypeScript
19
star
19

examples

Examples showing how to use the Saleor API.
15
star
20

saleor-app-payment-klarna

TypeScript
15
star
21

saleor-graphql-playground

TypeScript
12
star
22

saleor-app-payment-stripe

TypeScript
12
star
23

app-bridge

An official library for handling all communication between Saleor Dashboard and Saleor Apps.
TypeScript
12
star
24

create-saleor-app

TypeScript
10
star
25

app-examples

Common examples and patterns writing great Saleor apps
10
star
26

example-flutter

Saleor Example: Flutter Mobile App (Dart)
Dart
9
star
27

example-react-native-typescript

Saleor Example: React Native App in TypeScript using Expo
TypeScript
9
star
28

saleor-stellate

Stellate support for Saleor Commerce
TypeScript
9
star
29

saleor-email-templates

Example e-mail templates for Saleor
HTML
9
star
30

dummy-payment-app

Bare-bones app for testing Saleor's Transactions API
TypeScript
8
star
31

example-nextjs-app-router-starter

Saleor Example: Next.js 13 App Router Starter
TypeScript
8
star
32

requests-hardened

A library that overrides the default behaviors of the requests library, and adds new security features.
Python
8
star
33

saleor-app-search

TypeScript
6
star
34

tutorial-walkthrough

TypeScript
6
star
35

saleor-app-cms

TypeScript
6
star
36

example-nextjs-stripe

TypeScript
6
star
37

saleor-plugin-avatax-excise

Python
6
star
38

example-react-cra-typescript

Saleor Example: React App in TypeScript using Create React App (CRA)
TypeScript
5
star
39

saleor-avatax

TypeScript
5
star
40

saleor-app-invoices

Saleor integration for invoices generation
TypeScript
5
star
41

saleor-taxjar

TypeScript
5
star
42

saleor-admin-email-templates

Saleor admin email MJML templates: Reset password, export data, staff order
HTML
4
star
43

graphiql-plugin-collection

TypeScript
4
star
44

devtools-integration-tests

This is a hub for integration and e2e tests for CLI
TypeScript
4
star
45

saleor-app-data-importer

TypeScript
3
star
46

.github

3
star
47

example-react-nextjs-apollo-typescript

Saleor Example: React App in TypeScript with Apollo GraphQL using Next.js
TypeScript
3
star
48

json-schema-compiler

TypeScript
3
star
49

saleor-app-payment-template

Template Saleor payments apps are built from
TypeScript
3
star
50

saleor-app-emails-and-messages

TypeScript
2
star
51

saleor-app-klaviyo-old

TypeScript
2
star
52

digitalocean-1click

Shell
2
star
53

saleor-og

TypeScript
2
star
54

saleor-app-algolia

TypeScript
1
star
55

saleor-app-abandoned-checkouts

Example app built for documentation purposes
TypeScript
1
star
56

app-debug-bar

TypeScript
1
star
57

eslint-plugin-saleor-app

ESLint plugin with rules for Saleor Apps
TypeScript
1
star
58

marketplace-content

Marketplace content
1
star
59

example-auth-nextjs-pages-router

Saleor Example: Auth SDK with Next.js (Pages Router) in TypeScript
TypeScript
1
star
60

shellcheck-gha

Extracts and checks shell scripts in Github Workflows for potential issues using ShellCheck.
Python
1
star