This repo contains an example e-commerce store that is built with Next.JS, Cosmic JS and Snipcart.
- Node (I recommend using latest version)
- Cosmic JS account
- Snipcart account
git clone https://github.com/sumitkharche/nextjs-ecommerce-website.git
cd nextjs-ecommerce-website
npm install or yarn install
In config.js file,
- update your Cosmic JS bucket slug and read key.
- update your Snipcart api key.
npm run dev
Open http://localhost:3000.
npm run build & npm run start