Integrating a headless content plaform with Shopify Hydrogen based on: https://hygraph.com/blog/integrate-hydrogen-with-hygraph
- A Hygraph account
- A Hygraph project with a model
- A Shopify store
- Node.js v16 or later
git clone https://github.com/hygraph/hygraph-shopify-hydrogen.gitInstall all the dependencies.
npm installRename the .env.example file.
mv .env.example .envUse your Shopify storefront values in the .env file.
PUBLIC_STOREFRONT_API_TOKEN=
PUBLIC_STOREFRONT_API_VERSION=
PUBLIC_STORE_DOMAIN=Open app/routes/index.js and replace <your-hygraph-content-api-endpoint> with your Hygraph project content endpoint.
Run the project.
npm run dev