/gatsbyjs-ecommerce

Static E-commerce site built using GatsbyJs

Primary LanguageJavaScriptMIT LicenseMIT

GatsbyJs Ecommerce

A minimalist static E-commerce site built using GatsbyJs. It use headless CMS called Contentful, so no need to manage database for APIs hosting.

  • Site is still in progress, happy for pull requests and issues if you find any.

Live Demo

Required API for mutations can be found in API branch

Schema to setup Contentful's Content model can be found here Schema JSON

More info about this written here for better understanding Creating Static E-commerce site with GatsbyJs

Stack

To use

  • Fork or download this repository
  • Ready!

To change site config ./src/config/index.js

also add .env file in the root, with content for example:

CONTENTFUL_SPACE_ID=YOUR_KEY_HERE
CONTENTFUL_DELIVERY_API_TOKEN=YOUR_KEY_HERE
STRIPE_PUBLISHABLE_KEY=YOUR_KEY_HERE

Setup

Run:

yarn install

Development

To start development server

yarn start

Deployment

yarn run build
yarn serve