You'll need a Shopify Storefront App to use this example. Follow this guide to do so.
The flow is:
- We use
@bsmnt/sdk-gento hook into Shopify's Storefront API — see this in/src/storefront/sdk-gen - We use
@bsmnt/storefront-hooksto create client side hooks that'll help us manage cart state, and more — see this in/src/storefront/hooks - We use
@bsmnt/dropto put a drop countdown in fron of our app — see this in/src/pages/_app
-
Install pnpm (or use whichever package manager you prefer):
npm install -g pnpm -
Install the dependencies with:
pnpm -
Start developing and watch for code changes:
pnpm dev