Skip to content

Quick start

  • Node.js 26.5 or later (below 27).
  • A Magento 2.4.8 backend with GraphQL reachable from your machine. The companion modules your storefront uses must be installed there.
  1. Install dependencies from the repository root:

    Terminal window
    npm install
  2. Point the storefront at your Magento. Create apps/theme/.env.local:

    Terminal window
    MAGENTO_GRAPHQL_ENDPOINT=https://magento.example.com/graphql
    NEXT_PUBLIC_SITE_URL=http://localhost:3000
  3. Take a snapshot of your Magento store views:

    Terminal window
    npm run sync:stores

    This writes apps/theme/src/generated/stores.json. Commit it when it changes.

  4. Start the dev server:

    Terminal window
    npm run dev

    It builds the engine package first, then starts Next.js on http://localhost:3000.

The full list, with the test setup and the PR gate, is in Testing and quality gates.

ScriptDoes
npm run devEngine build, then the Next.js dev server.
npm run buildProduction build of the theme.
npm testUnit tests (Vitest). Build the engine first.
npm run lint / npm run type-checkESLint and TypeScript over engine and theme.
npm run sync:storesRefresh the store-view snapshot from Magento.
npm run check:overridesCheck src/custom/ overrides against upstream changes.
npm run bundle-budgetFail when client bundles grow past their budget.