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