An opinionated starter template for Gatsby + Sanity + Shopify.
This template repo is used by Sanity.io to easily create deployed and configured projects through a web interface.
The template contains both a Sanity Studio with dynamic product imports from Shopify and a fresh Gatsby theme to show off your products. Both are deployed on Netlify.
Want to make a template for Sanity and your favourite front-end framework? We’re still maturing sanity.io/create and our APIs, but do tell us about it on slack.sanity.io.
You develop the templates in /template, and review your changes in /build.
-
Install dependencies with
npm installin the root folder. This will install the template development tool that watches changes in the/templatefolder and output the template to/build. -
Run
npm run devin root folder. This will build the template files to/build. This is how the code will look for those who install the project later. -
Run
npm installin./build/webandsanity installin/build/studioThis will install the necessary dependencies for the Gatsby frontend and the Studio. -
Run
npm run devin./build/webandsanity startin/build/studio. This will start the development servers for the Gatsby frontend and Sanity Studio.
