Skip to content
Tulos

Quick start

From the unzipped folder to a running store in four commands.

Open a terminal in the unzipped folder and run:

pnpm install
cp .env.example .env      # then fill in the values
pnpm seed                 # loads the sample catalog into your Sanity dataset
pnpm dev                  # http://localhost:3000

Before pnpm seed and pnpm dev, fill in .env: see Sanity, Clerk and Stripe, and the full list in Environment variables.

Note

pnpm seed uses the Sanity CLI. Sign it in once with pnpm exec sanity login.

Open the app

URL What
http://localhost:3000 Storefront
http://localhost:3000/studio Sanity Studio
http://localhost:3000/admin Admin panel (emails in ADMIN_EMAIL)

Try a full order

Sign in → add products to the cart → add a shipping address → Checkout → pay on Stripe with the test card 4242 4242 4242 4242 → the success page appears, and the order shows as Paid in My orders and in /admin/orders.

Tip

For the order to turn Paid locally, keep stripe listen --forward-to localhost:3000/api/webhook running in a second terminal. See Stripe payments.