
Ecommerce
Full ecommerce store with Payload backend, Next.js storefront, Stripe payments, variants, carts and guest checkout
Next.js and Payload storefront with Stripe checkout, store pickup, order emails and an admin sales dashboard
A storefront starter built on Next.js 16, Payload CMS 3 and PostgreSQL with Tailwind CSS 4. It covers the category, product, cart, checkout and purchase flow, with store pickup or Stripe online payment. It needs Node 24 or newer, pnpm and a PostgreSQL database, and includes a seed script for sample data.
Ecommerce template for Payload
This repository is a GitHub template: create your own copy of it in one click.
Create a repository from this templateProduction-ready e-commerce starter built with Next.js 16 and Payload CMS 3.
Clone, configure, and launch your store.
Main Site: https://ecommerce.studiopo.net
Admin Panel: https://ecommerce.studiopo.net/admin
Demo Login:
Email: [email protected]
Password: admin
🔄 Reset Demo Data
If demo data was modified while you or another user were testing, you can restore it to a fresh state by visiting: https://ecommerce.studiopo.net/preview/reset
Deploy your own Payload-powered e-commerce storefront.
After creating your project, make sure to go to the Vercel dashboard and update your environment variables based on .env.example
The project uses a simple DAL (Data Access Layer) abstraction.
You can choose the implementation in:
Both expose the same public methods.
Clone the repo and start a local PostgreSQL with Docker:
docker run --name payload-ecommerce \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=admin \
-e POSTGRES_DB=payload \
-p 5443:5432 \
-v payload_ecommerce_data:/var/lib/postgresql \
-d postgres:18
Create a .env file based on .env.example and configure your environment variables, then install and run:
pnpm install
pnpm dev
To seed mock data for local development:
seed/data/images. pnpm run seed
This will populate your local database with sample products, categories, and orders for development and testing.
src/app/(app)/ — Public storefront (home, product, category, checkout, preview)src/app/(payload)/ — Payload admin + API routessrc/lib/ — Core app logic (collections, queries, caching, types, utilities, providers, i18n)src/lib/collections/ — Payload CMS collection definitions (Products, Category, Media, Users, Orders, etc.)src/components/ — UI + domain components (cart, checkout, product, layout, shared, ui)Contributions are welcome!
If you find this project useful, consider giving it a ⭐ on GitHub — it helps others discover it!
To contribute, fork the repository and submit a pull request with your enhancements or bug fixes.
This project is licensed under the MIT License.

Full ecommerce store with Payload backend, Next.js storefront, Stripe payments, variants, carts and guest checkout
Shopify-style storefront and admin built on Payload CMS and Next.js with Stripe payments
Medusa storefront with Payload CMS and Next.js running on Cloudflare Workers with D1 and R2