Skip to content

Latest commit

 

History

History

commerce-storefront

Folders and files

Independent commerce storefront example

This React Router application consumes the compiled @godaddy/gd-commerce-storefront package and its shipped CSS. It runs as a standalone application without Tailwind configuration.

Run from the repository root with Node 24:

pnpm install
pnpm --filter @godaddy/gd-commerce-storefront build
pnpm --filter commerce-storefront-example dev

Open http://127.0.0.1:5184/shop. The Vite development server serves a demonstration catalog and in-memory cart at /api/commerce. Try adding the mug, changing quantities, removing items, and selecting the blue or sold-out clay tote. Reloading the browser restores a saved cart while the demo server remains running. Restarting the server expires it.

This mock is for local UI demonstration only. It creates no Commerce orders or payments and is not a production server implementation. Checkout is intentionally disabled. The production build verifies bundling; it does not include the mock API, so a deployed build needs an implementation of the server contract.

pnpm --filter commerce-storefront-example build