spree/spree-starter
关于
@spree 应用启动模板
商业与金融实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
探索相关项目
加载中…