This is an example repository which can be used to follow along in the build a tokengated storefront tutorial series.
Remember to update .env
with your shop's domain and Storefront API token!
headless_gating_example
with your gate configuration's metafield namespace._headless_gate_context
with your desired cart attributes key name (this is referenced in your Shopify Function).ALCHEMY_API_KEY="YOUR_ALCHEMY_API_KEY"
SESSION_SECRET="YOUR_SESSION_SECRET"
SHOPIFY_FUNCTION_SECRET="YOUR_FUNCTION_SECRET"
PUBLIC_STOREFRONT_API_TOKEN="YOUR_API_TOKEN"
PUBLIC_STOREFRONT_API_VERSION="unstable"
PUBLIC_STORE_DOMAIN="YOUR_STOREFRONT_DOMAIN"
npm run dev
MIT © Shopify, see LICENSE.md for details.