Skip to content

Latest commit

 

History

108 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Long Look

A Hydrogen storefront for The Long Look, deployed on Shopify Oxygen.

Stack

  • Hydrogen — Shopify's React framework for headless commerce
  • Oxygen — Shopify's global edge hosting for Hydrogen storefronts
  • React Router 7 — file-based routing
  • Tailwind CSS v4 — styling
  • shadcn/ui (Radix Nova) — accessible UI primitives in app/components/ui/
  • Storefront API — products, collections, cart, and checkout

Local development

npm install
npm run dev

Runs at http://localhost:3002. Link your Shopify store with shopify hydrogen link and shopify hydrogen env pull before developing.

GraphQL types are generated into app/types/*.generated.d.ts (gitignored). dev and build run codegen automatically; after a fresh clone you can also run npm run codegen.

Connect your Shopify store

  1. Log in to Shopify CLI:

    npx shopify auth login
  2. Link this project to your store:

    npx shopify hydrogen link
  3. Pull environment variables:

    npx shopify hydrogen env pull
  4. Restart the dev server.

Deploy to Oxygen

npx shopify hydrogen deploy

This builds the storefront and deploys it to Shopify Oxygen. Your store will be accessible from your Shopify admin under Sales channels → Headless.

Project structure

app/
  components/           # Storefront UI (header, sidebar, footer, product grid)
  routes/              # Pages (home, collections, products, about, etc.)
  lib/                 # Content API, paths, helpers
  types/               # Generated GraphQL types (npm run codegen)
  graphql/             # Customer account queries

Checkout

Cart and checkout use Shopify's native cart API. Click Checkout in the cart drawer to go to Shopify Checkout.

UI components (shadcn)

shadcn/ui is configured via components.json. Add components with:

npx shadcn@latest add [component-name]

Imports use the ~/components/ui/* alias, for example ~/components/ui/button.

Tests

npm test

Playwright tests live in e2e/ — unit tests for framed-picture sizing (--project=unit) and browser flows (--project=e2e). npm test runs both; e2e tests start the dev server against your linked store.

About

House of Spoils — Hydrogen storefront on Shopify Oxygen

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages