Skip to content

This repository will be responsible for a new approach on how customers start working with Saleor, prioritizing commerce as code instead of changing fields

Notifications You must be signed in to change notification settings

saleor/quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Saleor Platform

Saleor Quickstart

Run all Saleor services on the same environment from one repository using commerce as code to build your own store with your own products and content models.

Join our Discord community to get help and discuss the project!

Discord

About

What is Saleor Quickstart?

This repository provides the easiest way to start local development with all the major Saleor services using Tilt:

Keep in mind this repository is for local development only and is not meant to be deployed in any production environment!

Initial Setup

Requirements

  • macOS/Linux: Supported natively
  • Windows: WSL (Windows Subsystem for Linux) is required. Please install and configure WSL2 before proceeding with installation.
    • WSL Installation Guide
    • Use Ubuntu or Debian as your WSL distribution for best compatibility
    • All commands should be run from within your WSL terminal, not PowerShell or CMD

Option 1: Using Installation Script (Recommended)

  1. Clone the repository:
git clone https://github.com/saleor/quickstart.git
cd quickstart
  1. Run the installation script:
# Make the script executable
chmod +x ./install.sh

# Run the installation script
./install.sh

The script will automatically check and install all requirements, including:

  • Docker Desktop
  • Tilt
  • Kubernetes setup
  • jq (JSON processor)
  • Required Docker images

Option 2: Manual Installation

First, ensure you have the following requirements:

  1. Docker Desktop

    • Windows/MacOS: Minimum 5 GB of memory required
    • Windows/MacOS: Enable file sharing for the project directory
    • Linux: No special configuration needed
    • Required images:
      docker pull ghcr.io/saleor/saleor:latest
  2. Tilt

    • macOS: brew install tilt
    • Windows: scoop install tilt
    • Linux: curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
  3. jq - JSON processor used in scripts

    • macOS: brew install jq
    • Ubuntu/Debian: apt-get install jq
    • Windows: scoop install jq or download from the official website
  4. Kubernetes

    • Enabled in Docker Desktop
    • No additional installation needed

Then follow these steps:

  1. Enable Kubernetes in Docker Desktop:

    • Open Docker Desktop
    • Go to Settings -> Kubernetes
    • Check "Enable Kubernetes"
    • Click "Apply & Restart"
    • Windows/MacOS: Make sure you have dedicated at least 5 GB of memory (Settings -> Resources -> Advanced)
  2. Clone the repository:

git clone https://github.com/saleor/quickstart.git
cd quickstart
  1. Start the development environment:
tilt up
  1. Open Tilt UI in your browser:
tilt up --web
  1. Default Saleor Dashboard Admin Access:

Where is everything running?

Development Features

Live Updates

The environment supports live code updates for:

  • Frontend code changes
  • GraphQL schema changes
  • Payment service modifications

Resource Organization

Tilt UI organizes resources into sections:

  1. Namespace: Kubernetes namespace setup
  2. Backend: API, Database, Redis, etc.
  3. Schema: GraphQL schema generation
  4. Frontend: Storefront application
  5. Services: Payment service
  6. K8s: Kubernetes configurations

Troubleshooting

How to solve common issues?

  1. Check service status
tilt status
  1. View service logs
tilt logs <service-name>
  1. Restart a service
tilt trigger <service-name>
  1. Reset everything
tilt down && tilt up

Issues with API or Schema Generation

If the schema generation fails:

  1. Check API logs: tilt logs api
  2. Ensure API is running: curl http://localhost:8000/graphql/
  3. Manually trigger schema generation: tilt trigger generate-schema

Database Issues

For database problems:

  1. Check DB logs: tilt logs db
  2. Restart migrations: tilt trigger apply-migrations
  3. Reset sample data: tilt trigger populate-db

Feedback

If you have any questions or feedback, do not hesitate to contact us via:

License

Disclaimer: Everything you see here is open and free to use as long as you comply with the license. There are no hidden charges. We promise to do our best to fix bugs and improve the code.

Crafted with ❀️ by Saleor Commerce

Project Structure

.
β”œβ”€β”€ backend/           # Backend services
β”œβ”€β”€ frontend/          # Storefront application
β”œβ”€β”€ service/          # Additional services (payment, etc.)
β”œβ”€β”€ k8s/              # Kubernetes configurations
└── Tiltfile         # Tilt configuration

About

This repository will be responsible for a new approach on how customers start working with Saleor, prioritizing commerce as code instead of changing fields

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •