Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 977 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 977 Bytes

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