/gatsby-starter-sell-stuff

A Gatsby ecommerce starter setup with Stripe integration and Sanity for content management.

Primary LanguageJavaScript

gatsby-starter-sell-stuff

Netlify Status

An ecommerce Gatsby starter built with Stripe, Sanity, Theme-ui and Netlify.

Live demo: gatsby-starter-sell-stuff.netlify.app

This starter utilizes use-shopping-cart under the hood to handle all interactions with Stripe and payment processes.

The content is managed via a Sanity studio, it's repo is housed alongside this one.

Theme-ui is used to style the site, it's theme object is a powerful source of truth. I've tried to utilize variants as much as possible to make it easy to override styles. In any case, the styles can be overridden in the theme object.

The site is hosted on Netlify (....add one click deploy button) and uses a serverless function (which is also hosted on Netlify) to validate the customers cart and handle the Stripe checkout session.

Setup

Before you begin developing with this starter you will need to create an account with Stripe. Once done grab your API and SECRET keys and add them to two new files .env.development and .env.production. You can copy paste the contents of the .env.example file as a template.

More docs to follow.....