Skip to content
Gatsby starter for creating an eCommerce site using the Moltin eCommerce Api
Branch: master
Clone or download
parmsang fix(cart): avoids error by ensuring a string is returned for lastname…
… and county when values are given by stripe as null
Latest commit e93393d Apr 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cypress style: apply new prettier setting across all files Mar 10, 2019
lib removed unwanted modules and plugins Mar 2, 2019
src fix(cart): avoids error by ensuring a string is returned for lastname… Apr 6, 2019
static updates favicons Jun 23, 2018
tests refactor: use SEO component Mar 10, 2019
.babelrc removed unwanted modules and plugins Mar 2, 2019
.eslintrc feature: added logout button/link to menu Mar 10, 2019
.gitignore chore: update prettier and gitignore settings Mar 9, 2019
.prettierignore chore: update prettier and gitignore settings Mar 9, 2019
.travis.yml first commit Jun 8, 2018
LICENSE first commit Jun 8, 2018
README.md updated README Mar 3, 2019
cypress.json chore: set up cypress and add a smoke test Mar 9, 2019
gatsby-browser.js refactor: move providers into gatsby-browser Mar 9, 2019
gatsby-config.js chore(deps): bump react-helmet to 6.0.0-beta to address 'max call sta… Apr 6, 2019
gatsby-node.js remove unnecessary use of createRemoteFileNode in gatsby-node Mar 3, 2019
gatsby-ssr.js refactor: move providers into gatsby-browser Mar 9, 2019
jest.config.js chore: further jest configuration to get test working Mar 9, 2019
lint-staged.config.js chore: further jest configuration to get test working Mar 9, 2019
package-lock.json chore(deps): bump @moltin/sdk to latest Apr 6, 2019
package.json chore(deps): bump @moltin/sdk to latest Apr 6, 2019
prettier.config.js chore: update prettier and gitignore settings Mar 9, 2019
wrap-with-provider.js refactor: move providers into gatsby-browser Mar 9, 2019

README.md

Gatsby Starter eCommerce

Gatsby starter for creating an eCommerce site using Moltin eCommerce Api .

This starter adapts an existing NextJS eCommerce starter for GatsbyJS.

Demo: https://parmsang.github.io/gatsby-starter-ecommerce/

This starter originally used Gatsby v1 and has now been updated to v2. The original version can be found in branch "gatsby-v1".

Warning

This starter is currently work in progress

Getting started

Install this starter (assuming Gatsby is installed) by running from your CLI:

gatsby new gatsby-store https://github.com/parmsang/gatsby-starter-ecommerce

Running in development

npm run develop

Additional Setup

Both a moltin and Stripe account are needed for this store to run successfully.

Create a .env.development and .env.production file at the project root with your moltin client_id and Stripe test publishable key.

MOLTIN_CLIENT_ID=
STRIPE_PUBLISHABLE_KEY=

Features

  • Moltin eCommerce API
  • React 16
  • PWA (includes manifest.webmanifest & offline support)
  • Eslint & Prettier
  • Styled Components
  • Google Analytics - (you enter the tracking-id)
  • Semantic-UI
  • Authentication via Moltin (Login and Register)
  • Stripe checkout
You can’t perform that action at this time.