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.
This repository provides the easiest way to start local development with all the major Saleor services using Tilt:
- Core GraphQL API
- Dashboard
- Storefront
- Mailpit (Test email interface)
- Jaeger (APM)
- Payment Service
- The necessary databases, cache, etc.
Keep in mind this repository is for local development only and is not meant to be deployed in any production environment!
- 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
- Clone the repository:
git clone https://github.com/saleor/quickstart.git
cd quickstart
- 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
First, ensure you have the following requirements:
-
- 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
-
- macOS:
brew install tilt
- Windows:
scoop install tilt
- Linux:
curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
- macOS:
-
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
- macOS:
-
Kubernetes
- Enabled in Docker Desktop
- No additional installation needed
Then follow these steps:
-
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)
-
Clone the repository:
git clone https://github.com/saleor/quickstart.git
cd quickstart
- Start the development environment:
tilt up
- Open Tilt UI in your browser:
tilt up --web
- Default Saleor Dashboard Admin Access:
- Email:
[email protected]
- Password:
admin
- Email:
- Saleor Core (API) - http://localhost:8000
- Saleor Dashboard - http://localhost:9000
- Saleor Storefront - http://localhost:30080
- Jaeger UI (APM) - http://localhost:16686
- Mailpit (Test email interface) - http://localhost:8025
- Payment Service - http://localhost:8001
- Tilt UI - http://localhost:10350
The environment supports live code updates for:
- Frontend code changes
- GraphQL schema changes
- Payment service modifications
Tilt UI organizes resources into sections:
- Namespace: Kubernetes namespace setup
- Backend: API, Database, Redis, etc.
- Schema: GraphQL schema generation
- Frontend: Storefront application
- Services: Payment service
- K8s: Kubernetes configurations
- Check service status
tilt status
- View service logs
tilt logs <service-name>
- Restart a service
tilt trigger <service-name>
- Reset everything
tilt down && tilt up
If the schema generation fails:
- Check API logs:
tilt logs api
- Ensure API is running:
curl http://localhost:8000/graphql/
- Manually trigger schema generation:
tilt trigger generate-schema
For database problems:
- Check DB logs:
tilt logs db
- Restart migrations:
tilt trigger apply-migrations
- Reset sample data:
tilt trigger populate-db
If you have any questions or feedback, do not hesitate to contact us via:
- GitHub Discussions
- Discord Community - Join our community for quick help and discussions!
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
.
βββ backend/ # Backend services
βββ frontend/ # Storefront application
βββ service/ # Additional services (payment, etc.)
βββ k8s/ # Kubernetes configurations
βββ Tiltfile # Tilt configuration