Skip to content
Projets

spree/spree-starter

Voir sur GitHub

À propos

Modèle de démarrage d’application @spree

Gestion et finance

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Spree Starter

The Rails application behind every Spree Commerce 6 project. It serves:

  • the Store API for storefronts and mobile apps
  • the Admin API
  • the Admin Dashboard, at /dashboard
  • background jobs, with their dashboard at /jobs
  • transactional emails

Projects created with create-spree-app keep this application in their server/ directory.

Getting started

Create a new project with create-spree-app:

npx create-spree-app@latest my-store

It sets up this application together with:

  • the Admin Dashboard and an optional Seller Panel for marketplaces, as apps you can customize
  • an optional Next.js storefront
  • the Spree CLI, which runs everything in Docker
  • the Spree agent skills for AI coding agents

You only need Node.js and Docker.

Just evaluating Spree? Skip self-hosting and use a hosted sandbox.

Customization

Start with the Customization Guide. It covers, in the order you should reach for them:

  • events and subscribers
  • workflow hooks
  • dependencies
  • extensions
  • decorators, as a last resort

Run commands through the Spree CLI, never through bin/rails or bundle directly. For example, spree generate subscriber, spree migrate and spree test.

Coding agents

AGENTS.md holds the instructions for coding agents such as Claude Code, Codex, Cursor and Copilot. It is the only agent instruction file in the repository. Claude Code 2.1.281 and later reads AGENTS.md when a project has no CLAUDE.md, and most sessions do from 2.1.277. A personal CLAUDE.local.md counts as a CLAUDE.md: if you keep one, set Project instructions to claude-md-and-agents-md in /config, so Claude Code reads both. Point any tool that does not read AGENTS.md on its own at it.

For deeper Spree knowledge, install the Spree agent skills with the Spree CLI. It picks the skills release that matches this project's Spree version:

spree add ai             # in a create-spree-app project, from the project root
npx @spree/cli add ai    # in a bare clone of this repository

Environment variables

.env.example lists the required variables. See the Environment Variables reference for the full list.

Deployment

This application builds into a single Docker image: the API, the Admin Dashboard and background jobs. render.yaml deploys it to Render.

See the Deployment Guide for Render, AWS and other Docker hosts.

Docker image

Every release of this repository is published as ghcr.io/spree/spree, tagged with the Spree version and latest, for linux/amd64 and linux/arm64. It is built from this repository's Dockerfile by .github/workflows/release.yml.

The image holds this application with the Store and Admin APIs, the MCP server, the Admin Dashboard and Seller Panel, and background jobs. It needs Postgres; docker-compose.yml runs it with Postgres and Mailpit:

cp .env.example .env   # then set SECRET_KEY_BASE, e.g. to the output of: openssl rand -hex 64
docker compose up

The API then listens on http://localhost:3000 and the Admin Dashboard on http://localhost:3000/dashboard.

License

MIT

Explorer des projets similaires

Chargement…