Hydrogen is Shopify’s stack for headless commerce. Hydrogen is designed to dovetail with Remix, Shopify’s full stack web framework. This template contains a minimal setup of components, queries and tooling to get started with Hydrogen.
Check out Hydrogen docs Get familiar with Remix
Requirements:
npm create @shopify/hydrogen@latest
npm run build
npm run dev
/account
section)https://<your-ngrok-domain>.app
).ngrok http --domain=<your-ngrok-domain>.app 3000
Hydrogen
or Headless
app/channel => Customer Account API => Application setupCallback URI(s)
to include https://<your-ngrok-domain>.app/account/authorize
Javascript origin(s)
to include your public domain https://<your-ngrok-domain>.app
or keep it blankLogout URI
to include your public domain https://<your-ngrok-domain>.app
or keep it blankRun npx shopify hydrogen link
or npx shopify hydrogen env pull
to link this app to your own test shop.
Alternatly, the values of the required environment varaibles "PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID" and "PUBLIC_CUSTOMER_ACCOUNT_API_URL" can be found in customer account api settings in the Hydrogen admin channel.
🗒️ Note that mock.shop doesn't supply these variables automatically.