/nextjs-ecommerce-website

Blazing fast e-commerce store built using Next JS that utilizes the power of Cosmic JS & Snipcart

Primary LanguageJavaScript

Cosmic JS & Snipcart E-commerce Store

nextjs-ecommerce-website

nextjs-ecommerce-website

This repo contains an example e-commerce store that is built with Next.JS, Cosmic JS and Snipcart.

Prerequisites

  • Node (I recommend using latest version)
  • Cosmic JS account
  • Snipcart account

Getting Started

git clone https://github.com/sumitkharche/nextjs-ecommerce-website.git
cd nextjs-ecommerce-website
npm install or yarn install

Keys

In config.js file,

  • update your Cosmic JS bucket slug and read key.
  • update your Snipcart api key.

Run

npm run dev

Open http://localhost:3000.

Production

npm run build & npm run start