# Storefront template

An online store on your own domain: a product catalog, a cart, Stripe Checkout, customer accounts with order history, product photos, Postgres, and an agent API for fulfillment.

Canonical URL: https://getfloo.com/templates/storefront

[Sign up for Pro](https://app.getfloo.com/login?signup=1)

Choose Pro ($25/mo) during signup, then return to this template.

## Paste this into Claude or ChatGPT

You can also use this prompt in Claude Code, Codex or Cursor.

```text
Deploy the template at https://github.com/getfloo/storefront-template on floo for me. Use my existing floo org. If you cannot run commands here, guide me through them one at a time. Follow https://getfloo.com/agents.md to create a floo-hosted project, replace its starter code with this template's files (keep the project's [app] name in floo.app.toml), push, and give me the dev URL. The deploy stops on STRIPE_SECRET_KEY: have me copy my Stripe test-mode secret key and set it with `floo env set STRIPE_SECRET_KEY --stdin`, never pasting it to you, then redeploy. Then load the sample products and walk me through a test purchase with Stripe's test card.
```

## Use your own GitHub repository

Code: https://github.com/getfloo/storefront-template

Want the code in your own GitHub account instead? [Use this template on GitHub](https://github.com/getfloo/storefront-template/generate), then give your agent this:

```text
I used https://github.com/getfloo/storefront-template as a template to create my own repository on GitHub. Ask me for my repository's owner/name, then follow https://getfloo.com/agents.md to connect my repository (not the template) to a new floo app, push, and give me the live URL.
```

## What you get

- Stripe hosts the payment page, so card numbers never reach your app or floo. You set one Stripe key; prices come from your database, and each deploy sets up the Stripe webhook for its URL.
- Standard and Express shipping, with Standard free over a threshold you choose, and Stripe Tax for sales tax, VAT or GST once you turn it on.
- An order is paid only when Stripe's signed webhook says so. Stock goes down and the cart empties in the same transaction, and a retried webhook changes nothing.
- Shoppers sign up with email and see their orders. Guests can check out too.
- An agent API to list paid orders with shipping addresses, mark them shipped, add products, upload their photos, and change prices and stock.
- Each product page has its own title and link preview, and a sitemap lists every product as it is added.

## Make it yours

Then ask your agent for changes like these:

- "Take a tracking number when an order is fulfilled and show it on the customer's orders page."
- "Add product categories and a filter on the shop page."
- "Add a daily cron job that lists products with fewer than five left."
