chec / commercejs-chopchop-demo

A Commerce.js starter kit for Next.js. A beautifully designed elegantly developed, end to end commerce experience for developers and agencies. Pre-integrated with Stripe. One-click deploy to Vercel.
https://commercejs-chopchop-demo.vercel.app/
BSD 3-Clause "New" or "Revised" License
155 stars 65 forks source link
agencies commerce demo-store headless-commerce jamstack nextjs open-source serverless starter-kit stripe stripe-elements vercel

A Next.js, Commerce.js, Stripe, and Vercel powered, open source storefront, cart and checkout experience.

License
commercejs.com | @commercejs | Slack

View demo

View demo

Introduction

ChopChop is our beautifully designed, elegantly developed demo store and starter kit that sells fine tools for thoughtful cooks. We’ve created a premium brand with a commerce experience to match. Read more about this resource on the Commerce.js blog.

🥞 ChopChop Stack

Live demo

Check out https://commercejs-chopchop-demo.vercel.app to see this project in action.

Getting started

Prerequisites

Use the Chec CLI

You can use the Chec CLI to quickly and easily install demo stores like this, and also to install sample data into your account. To install the Chec CLI, run npm install -g @chec/cli (or yarn global add @chec/cli).

Manual installation

Clone the project, then get started by installing the dependencies, creating a .env file, and starting the dev server.

npm install
cp .env.example .env
npm run dev

Once the server is running, open it up in your browser, start editing the code, and enjoy!

Sample data

This repository comes with some sample products and images for you to use if you want to get up and running quickly.

To install sample data, first copy .env.example to .env, then edit .env and fill out the following variables:

Once this is done, save and close your file. You can now run the seeder to install sample data:

npm run seed
...
✔ Completed seeding
Added:
  3 categories
  6 products
  9 assets

And you're ready to go!

Deploying to Vercel (with one click)

The one-click deploy allows you to add the Vercel application to your GitHub account to clone this repository and deploy it automatically. Be sure to go to Vercel and sign up for an account with Github, GitLab, or GitBucket before clicking the deploy button.

Deploy with Vercel

Please make sure that you enter the required environment variables listed above during deployment.

Caveats for sample data

To make your ChopChop experience even better, there are a couple of things you can do that are not included with the sample data:

Customizations and Extendability

License

This project is licensed under BSD-3-Clause.

⚠️ Note

This repository is no longer maintained

However, we will accept issue reports and contributions for this repository. See the contribute to the commerce community page for more information on how to contribute to our open source projects. For update-to-date APIs, please check the latest version of the API documentation.