Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Example Gatsby, BigCommerce and Netlify CMS project meant to jump start JAMStack ecommerce sites.
The Gatsby + BigCommerce + Netlify CMS Starter is a JAMstack ecommerce boilerplate from BigCommerce that pairs a Gatsby v2 frontend with a BigCommerce backend and Netlify CMS for content editing.
The starter is an open-source project that wires a BigCommerce store's product data to a Gatsby static site and adds Netlify CMS for managing page and blog content. It takes a BigCommerce instance with API credentials as input and produces a deployable, single-language storefront on Netlify. The project is maintained by BigCommerce and is based on the Gatsby Netlify CMS Starter from netlify-templates.
This starter brings together Gatsby v2, BigCommerce, Netlify CMS, and a Netlify deployment pipeline in a single boilerplate.
The starter is aimed at developers and teams building storefronts on the JAMstack with BigCommerce as the commerce engine.
With this starter you can go from an empty BigCommerce API key to a live Netlify-hosted storefront in a few steps.
To set up locally, copy SAMPLE.env to .env and fill in BigCommerce API credentials, run yarn to install dependencies, then npm run build and npm run serve to test the production build and CMS. For a hosted setup, use the Netlify one-click deploy button, then add the required environment variables in Netlify's Build & Deploy settings and configure Netlify Identity for CMS authentication.
The starter has clear benefits and a few setup caveats listed in the repository.
Yes, the repository explicitly notes "This starter uses Gatsby v2," so the frontend is built on the older Gatsby 2 major version rather than Gatsby 4 or 5.
You need Node v10.16.3 (recommended), the Gatsby CLI, the Netlify CLI, and a BigCommerce instance with API keys. A free BigCommerce trial includes API access.
The first deploy fails because the Netlify site does not yet have the BigCommerce API environment variables set. You must add the variables listed in SAMPLE.env under Build & Deploy settings, then redeploy.
The main branch is designed for a simple single-language storefront. A separate multi-channel branch exists that supports multiple regions within a single storefront, if you need that.
You need to run a production build first: npm run build, then npm run serve. This serves the site locally with the Netlify CMS available, assuming you have set up authentication and hosting via the Netlify CMS Quick Start Guide.