Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A fully-fledged eCommerce demo store built with Commerce.js and Next.js, deployable to Netlify.
Commerce.js Next.js Demo Store is an open-source eCommerce starter template that pairs the Commerce.js v2 SDK with Next.js to deliver a complete storefront, ready for one-click deployment to Netlify.
This template is a fully-fledged eCommerce demo store built with the Commerce.js v2 SDK and Next.js. It takes as input your Chec merchant account credentials (a public key and a secret key) and produces a live storefront with a product catalog, categories, variants, cart, checkout, customer login, order confirmation, and printable receipts. It runs on Next.js and is designed to deploy to Netlify, with both a one-click deploy option and manual Git-based deployment supported. The template is maintained by Chec, the company behind Commerce.js.
/seeds directory, combined with a yarn seed script, populates your Chec account with sample products, categories, and assets so the storefront works immediately after setup.public/images/collection.public/images/collection to match your inventory.The template requires a Chec merchant account to supply API keys. After cloning the repository, copy .env.example to .env, add your public and secret keys, run yarn seed to populate your Chec account with sample data, then run yarn dev to start the development server on localhost:3000. For production, you can deploy via Netlify's one-click button or manual Git-based deployment using the included netlify.toml build settings.
Yes, the repository is open source and free to use. You will need a Chec account to obtain API keys; Chec offers a free tier, and the template works with the demo merchant's public key for a quick preview deploy.
No. The README highlights Netlify for one-click deployment, but the Next.js app can be deployed manually to any platform that supports Node.js by setting the same environment variables.
Stripe is not enabled by default. You must enable it in the Chec Dashboard, add your sandbox or live keys, then configure the Stripe publishable key in your .env file. The template includes Stripe Elements support for the checkout.
Yes, after seeding sample data you can edit products and categories in the Chec Dashboard. If you change category feature images, keep the file names matching under public/images/collection, or add new metadata via the Chec API.
The demo store expects a specific inventory structure: categories must exist, and product assets must be assigned via the Chec API if you want multi-image products. The README notes that the one-click deploy with your own public key will fail unless your account has the appropriate assets and categories.
