Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sumitkharche/nextjs-ecommerce-website

Blazing fast e-commerce store built using Next JS that utilizes the power of Cosmic JS & Snipcart
https://github.com/sumitkharche/nextjs-ecommerce-website

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Cosmic JS & Snipcart E-commerce Store

![nextjs-ecommerce-website](public/e-commerce-website.png "The index page of the e-commerce store")

![nextjs-ecommerce-website](public/e-commerce-website-2.png "The cart window of the e-commerce store")

> This repo contains an example e-commerce store that is built with [Next.JS](https://nextjs.org/), [Cosmic JS](https://www.cosmicjs.com) and [Snipcart](https://snipcart.com/).

### [View Demo](https://nextjs-ecommerce-website.netlify.com/)

## Prerequisites
- Node (I recommend using latest version)
- Cosmic JS account
- Snipcart account

## Getting Started
``` bash
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
``` bash
npm run dev
```
Open http://localhost:3000.

### Production
``` bash
npm run build & npm run start
```