Skip to main content
Start from getfloo/storefront-template, a Next.js store your agent can change. It comes with:
  • a product catalog and a cart in managed Postgres;
  • Stripe Checkout with Standard and Express shipping, and Stripe Tax when you turn it on;
  • customer accounts with order history, and guest checkout;
  • product photos in floo Storage;
  • an API for agents to add products and ship orders.
Card numbers stay with Stripe. An order is paid only when Stripe’s signed webhook says so.

Agent prompt

Paste into Claude Code, Codex or Cursor:

Set your Stripe key

The first deploy stops on STRIPE_SECRET_KEY. In the Stripe Dashboard, in test mode, copy the secret key and set it from your own terminal:
You don’t create a webhook. Each deploy creates or updates one Stripe webhook endpoint for the environment’s URL and keeps its signing secret in the store’s database. A custom domain moves the webhook on the next deploy. A restricted key needs write access to Webhook Endpoints.

Add products

Give your agent an app API key with the api scope and load the sample products through the store’s API:
Buy something with Stripe’s test card 4242 4242 4242 4242, any future date and any CVC.

Run the store with an agent

The same key lists paid orders with their shipping address and method, marks them shipped, adds products and photos, and changes prices and stock. The store describes its API at /api/openapi.json. The template’s README lists every route.

Go live

Prod runs as a separate environment with its own database, photo bucket and Stripe key. Set your live key, then release:
floo promote releases an app floo hosts. For an app on your own GitHub repository, create a GitHub release instead, as in Deploy a customer-facing app.

Next steps

Walkthrough

Every step of a real run, from first deploy to a shipped order.

Stripe payments

Add Checkout to an app you already have.