Headless Starter with Sanity + Gatsby + Shopify Repo
The Gatsby theme named Sentry is in active development with a focus on providing a full shoppable/authenticated Shopify experience in a headless environment. It aims to enable viewing products, adding them to a cart, proceeding to checkout, registering, logging in, viewing orders, and managing addresses. The theme is designed to serve as a middleware for custom ecommerce, direct-to-consumer, and headless solutions.
Getting Started Guide:
rm -rf .git
.Studio Setup:
sanity init
.studio/package.json
and modify schemas to define content types.Configuration:
env.example
to .env
using mv env.example .env
..env
file with the following keys:SANITY_API_TOKEN
, SANITY_DATASET
, SANITY_PROJECT_ID
.GATSBY_SHOPIFY_GRAPHQL_URL
, GATSBY_SHOPIFY_STOREFRONT_TOKEN
, GATSBY_SHOPIFY_STORE
.The Sentry Gatsby theme, still in active development, offers a comprehensive solution for building a shoppable Shopify experience in a headless environment. By providing TypeScript support and focusing on maintainability, it aims to streamline the setup process for Gatsby sites integrated with Sanity CMS and Shopify products. The theme’s opinionated approach and readiness for use make it a promising choice for developers seeking an efficient solution for custom ecommerce solutions.