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 full-featured setup of components, queries and tooling to get started with Hydrogen. It is deployed at hydrogen.shop
Check out Hydrogen docs Get familiar with Remix
- Remix
- Hydrogen
- Oxygen
- Shopify CLI
- ESLint
- Prettier
- GraphQL generator
- TypeScript and JavaScript flavors
- Tailwind CSS (via PostCSS)
- Full-featured setup of components and routes
Requirements:
- Node.js version 18.0.0 or higher
npm create @shopify/hydrogen@latest -- --template demo-store
Remember to update .env
with your shop's domain and Storefront API token!
npm run build
npm run dev
- Setup a ngrok account and add a permanent domain (ie.
https://<your-ngrok-domain>.app
). - Install the ngrok CLI to use in terminal
- Start ngrok using
ngrok http --domain=<your-ngrok-domain>.app 3000
- Go to your Shopify admin =>
Hydrogen
orHeadless
app/channel => Customer Account API => Application setup - Edit
Callback URI(s)
to includehttps://<your-ngrok-domain>.app/account/authorize
- Edit
Javascript origin(s)
to include your public domainhttps://<your-ngrok-domain>.app
or keep it blank - Edit
Logout URI
to include your public domainhttps://<your-ngrok-domain>.app
or keep it blank