Skip to content

Latest commit

 

History

History

ecommerce-storefront

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

E-Commerce Storefront — E-commerce / storefront & catalog (class #8)

Catalog id: ecommerce-storefront · Status: exists · Audience: both Banner app for this class: none

Use this when (from catalog: useWhen)

  • an online store selling products with variants, prices, a persisted cart, orders, and checkout
  • customers have store accounts to view orders that are separate from staff CMS accounts
  • money moves through a payment adapter for catalog items

Do not use this when (from catalog: doNotUseWhen)

  • selling a single recurring subscription tier for articles or newsletters — that is #6, editorial-publication
  • selling access to a gated course with lesson progress — that is #14, membership-course
  • a brochure site with a price list but no cart or checkout — that is #4, themed-smb-site

What this starter proves

  • Seams: S1, S4, S5, S6
  • Matrix stress cells: Schema & Data, API/MCP, Canned Admin, UI Primitives, Rendering, Media, Search, Auth & Actors, Bespoke / Generated

Architecture snapshot

  • Auth & actors: staff + customer
  • Rendering: themed public + bespoke cart/checkout shell
  • Tenancy: single
  • Transports used: REST, typed client, MCP
  • Agent contracts used: /ask

Scope

In (from catalog: scopeIn)

  • products, variants, and prices in the CMS catalog
  • persisted shopping cart in the database
  • customer actor accounts separate from staff accounts (S4)
  • one end-to-end checkout and order creation path (native commerce per D1)

Deliberately out (from catalog: scopeOut)

  • shipping carrier rate calculation
  • multi-jurisdiction tax engines
  • recurring subscription billing or warehouse fulfilment

Requires (from catalog: requires)

  • database
  • payment adapter
  • customer actor auth
  • search provider

Run it

pnpm install
pnpm --filter starter-ecommerce-storefront dev

Acceptance tests

Acceptance instance for seams: S1, S4, S5, S6.

pnpm --filter starter-ecommerce-storefront test:starter

If you are building the full product

Start from this starter and compose any additional mode overlays (headless-api or admin-only) specified in starters/catalog.json. For full product patterns, see the reference banner apps in app/prm (#10) and app/base (#12).