Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Gatsby e-commerce starter using Flotiq headless CMS and Snipcart for a complete merch shop.
Flotiq Gatsby Shop 1 is a Gatsby 5 starter that builds a static e-commerce merch storefront, with Flotiq as the headless CMS backend and Snipcart handling the shopping cart and checkout. It is maintained by Flotiq and ships with example content, a Flotiq source plugin, and ready-made deployment options.
This is a project starter for creating an online shop using Gatsby, a React-based static site generator. The shop's product data lives in Flotiq, a headless CMS, and is fetched at build time through the gatsby-source-flotiq plugin. The starter outputs a static site, meaning product pages are pre-built. It includes a live demo at flotiq-gatsby-shop-1.netlify.app. The starter requires Node version 18 or higher and uses Gatsby 5.
Start by installing the Flotiq CLI and running flotiq start my-shop https://github.com/flotiq/flotiq-gatsby-shop-1.git YOUR_API_KEY. This creates the Gatsby project, installs dependencies, populates the .env file, and imports example data. Then run gatsby develop to serve the site locally at localhost:8000. When you edit content in Flotiq, you must rerun gatsby develop to see changes; changes to content type definitions require gatsby clean.
The starter itself is open source under the MIT license. Flotiq and Snipcart offer free tiers; the README notes that Snipcart's public test API key works only for testing, and a paid license is needed for commercial use.
The .env.development file needs GATSBY_FLOTIQ_API_KEY (your Flotiq read/write API key), SNIPCART_API_KEY (your Snipcart API key), and GA_MEASUREMENT_ID (Google Analytics measurement ID).
If you don't use the Flotiq CLI, run flotiq import .flotiq YOUR_API_KEY in the project root. This adds four example objects to your Flotiq account.
Yes, there is a "Deploy to Cloudflare Workers" button. The README notes that the default uses a Flotiq starter API key; to use your own key, add a GATSBY_FLOTIQ_API secret in GitHub and rerun the workflow.
The starter requires Node 18 or higher because it uses Gatsby 5.
