Skip to content

mw10013/hydrogen-ui-remix-demo

Repository files navigation

Hydrogen UI Remix Demo

The hydrogen 1.0 demo mostly ported over to hydrogen-ui 2022.10.8 and remix. Demo

Dev Setup

  • .eslintrc.js: prettier
  • package.json: prettier, eslintIgnore
  • .gitignore: tailwind
  • pnpm exec tailwindcss init
  • tailwind.config.js
  • styles/tailwind.css
  • root.tsx: import tailwindStylesheetUrl from "./styles/tailwind.css";
  • tailwind.config.js plugins: require('@tailwindcss/forms')
  • tailwind.config.js plugins: require('@tailwindcss/typography')
  • pnpm dlx create-playwright
  • ignoring playwright configuration error: HTML reporter output folder clashes with the tests output folder
  • hack: ci uses .env.example?

Vitest

Playwright

  • pnpm dlx create-playwright
  • sudo -E env PATH="$PATH" pnpm playwright install-deps
  • remix playwright vitest example
  • pnpm playwright test
  • pnpm playwright test --grep user customer
  • pnpm playwright show-report e2e-results/playwright-report

Welcome to Remix!

Deployment

After having run the create-remix command and selected "Vercel" as a deployment target, you only need to import your Git repository into Vercel, and it will be deployed.

If you'd like to avoid using a Git repository, you can also deploy the directory by running Vercel CLI:

npm i -g vercel
vercel

It is generally recommended to use a Git repository, because future commits will then automatically be deployed by Vercel, through its Git Integration.

Development

To run your Remix app locally, make sure your project's local dependencies are installed:

npm install

Afterwards, start the Remix development server like so:

npm run dev

Open up http://localhost:3000 and you should be ready to go!

If you're used to using the vercel dev command provided by Vercel CLI instead, you can also use that, but it's not needed.

About

Demo shopify store using hydrogen-ui and remix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published