Skip to content

Latest commit

 

History

History

nextjs-shopify

nextjs-shopify

Requirements

You'll need a Shopify Storefront App to use this example. Follow this guide to do so.

Walk Through

The flow is:

  1. We use @bsmnt/sdk-gen to hook into Shopify's Storefront API — see this in /src/storefront/sdk-gen
  2. 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
  3. We use @bsmnt/drop to put a drop countdown in fron of our app — see this in /src/pages/_app

Development

  1. Install yarn (or use whichever package manager you prefer):

    npm install -g yarn
    
  2. Install the dependencies with:

    yarn
    
  3. Start developing and watch for code changes:

    yarn dev