yarn
if you see a node-gyp error fatal error: 'vips/vips8' file not found
, then install vips
through Homebrew:
brew install vips
yarn dev
The main branch of the project is deployed here
This project is an example of how to build fully-functioning Next.js commerce storefront with Hygraph and Stripe. View the demo on https://commerce.withheadlesscms.com/.
- Pre-rendered catalogue pages via
getStaticProps
andgetStaticPaths
. - Dynamic client-side data fetching via SWR.
- Shopping cart with
react-use-cart
. - Hosted checkout and payment flow with Stripe Checkout.
- Use the Hygraph mutation API with API Routes to create orders on successful checkout (via webhook).