Skip to content

🚀 Example projects and code to help you get started with Commerce.js

Notifications You must be signed in to change notification settings

devsaran/commercejs-examples

Repository files navigation

Commerce.js

Commerce.js Examples

Example projects to help you get started with Commerce.js.

Join our Slack · Read the Docs · Learn more about Commerce.js

Examples

We have broken down our examples into categories with descriptions:

ExampleDescriptionWhere are these hosted?
Demo storesOpen source demo stores for you to fork, pull apart and build on top of
Code ExamplesExamples of granular eCommerce functionality demonstrated via IDE editors/code playgroundsCodePen
CodeSandbox
Community docs page
GuidesStep-by-step guides on eCommerce functionality and instructions on using other Commerce.js toolsBlog
Community docs page
TutorialsStep-by-step tutorial of building a full Commerce.js app with products list, cart and checkout flowBlog
Community docs page
VideosShort sharp video guides demonstrating how to use the Commerce.js SDK to build projectsYoutube

Demo stores

ExamplesDescription
Next.js - ChopChop starter kitOpen source demo and starker kit built with Next.js and Commerce.js. One click deploy to Vercel, read the blog
Next.js - Fullly fledged eCommerce storeOpen source demo store that can be one click deployed to Netlify. Read the integration blog
Next.js - Fully fledged eCommerce storeOpen source demo store that can be one click deployed to Vercel
Vue.js - Shoppable campaign demoBoilerplate and live demo
React.js - Socks and Shoes demoLightweight demo store in React.js
Vue.js - Socks and Shoes demoLightweight demo store in Vue.js
Ionic - Native mobile applicationChopChop demo for Android and iOS using Ionic Framworkd

Code Examples

ExamplesDescription
React.js + Three.js - Product displayDisplaying a Three.js product animation in a React app
React.js + Three.js - Interactive cartAn interactive cart with Three.js renderend products
React.js + Three.js - Animated checkout formAn animated, interactive checkout form
React.js - Product catalogueA simple product catalogue built with Commerce.js SDK v2 and React.js
Vue.js - Full eCommerce appA complete eCommerce app with cart, checkout and receipt
Vue.js - Product catalogueA basic product catalogue built with Commerce.js SDK v2 and Vue.js
Vue.js - Product cardA product card layout built with Commerce.js SDK v2 installed as CDN
Vue.js - Add to CartA cart with cart total display built with Commerce.js SDK v2
Vue.js - Cart ModalA cart application built with Commerce.js SDK v2
Vue.js - CheckoutA checkout for capturing orders built with Vue.js and Commerce.js SDK v2
HTML + CSS - CheckoutA vanilla checkout form, built with the Commerce.js SDK v2 installed as a CDN

Guides

GuidesDescription
Chec CLIGuide on getting started with using the Chec CLI
Email receipt templateCreate an email order receipt using MJML
Email - Adding customers to Drip at checkoutAdd your customers to Drip for more contextual email marketing
Webhooks - Slack notifications for new ordersGet notified via Slack when you receive new orders
Webhooks - Twilio notifications for new ordersRecieve SMS notificatons via Twilio when a new order is placed
Nuxt.js - Listing products in a catalogueCreate a simple Vuex store and rendered your data server-side using Nuxt.js
Nuxt.js - Adding products to a dynamic cartCreate a dynamic sliding cart and add products to it using Nuxt.js and Commerce.js SDK
Nuxt.js - Creating a checkoutBuild a simple checkout using Nuxt.js and Commerce.js
Nuxt.js - Order confirmation and webhooksCreate a webhook to send an email via SendGrid to the customer after the checkout
Vue.js - Adding products to a cartCreate a simple shopping cart for your Vue.js app
Vue.js - Handling the checkoutCreate a checkout form to capture an order in Vue.js
React.js - Displaying products in a catalogueDisplay products in your React app
React.js - Listing products in a catalogueUsing React and Bootstrap, list your products with the Commerce.js SDK
React.js - Adding products to a cart with reccomended productsCreate a simple cart for a React.js app that also displays recommended products
React.js - Adding products to cartCreate and add products to cart in your React eCommerce app
React.js - Creating a single page checkoutBuild a single page checkout with Stripe and the Commerce.js SDK
React.js - Displaying a receipt + webhook notificationCreate an order confirmation display to the customer plus build a webhook notification with Slack
Three.js - Building a product display page with ReactCreate a product display page with a Three.js rendered product image
Three.js - Creating a cart with ReactCreate an interactive cart with Three.js rendered products
Gatsby - Building static product pagesBuild static product pages on the JAMstack with Gatsby and Commerce.js

Tutorials

TutorialsDescription
Vue.js demo storeA fully-fledged demo store handling eCommerce logic such as product catalogue, product variants, cart, checkout, and receipt confirmation built with Commerce.js SDK v2
Vue.js demo storeA simple demo store with a product catalogue, cart and checkout built with Commerce.js SDK v2
Nuxt.js storefrontBuild a simple storefront with categories and individual product pages using Nuxt.js
Next.js - Create a Next.js storeBuild a simple storefront with categories and individual product pages using Next.js
Gatsby - Create a Gatsby storefrontBuild a simple storefront with categories and individual product pages using Gatsby

Videos

VideoDescription
Nuxt.js - Storefront, categories and product pagesBuild a simple storefront with categories and individual product pages using Nuxt.js
Next.js - Storefront, categories and product pagesCreate a storefront with categories and individual product pages using Next.js
Gatsby - build a gatsby storefrontCreate a storefront with categories and individual product pages using Gatsby
Svelte - build a store in SvelteCreate a storefront with categories and individual product pages using Svelte

Contributing to our resources

If you'd like to contribute with an example project you have developed using Chec API and the Commerce.js SDK, please refer to our template guidelines on writing guides and tutorial:

Internal

**Naming convention for demo repositories: **

commercejs-{FRONT-END}-demo-{SCOPE}

Examples:

  • commercejs-nextjs-demo-cart
  • commercejs-react-demo-store
  • commercejs-react-demo-cart

About

🚀 Example projects and code to help you get started with Commerce.js

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue57.0%
  • JavaScript25.1%
  • HTML11.4%
  • CSS3.9%
  • SCSS2.4%
  • Shell0.2%