Back to Ghost

Ghost Admin (React)

apps/admin/README.md

6.53.01006 B
Original Source

Ghost Admin (React)

New React-based Ghost admin interface, gradually replacing the existing Ember admin.

Architecture

Uses an Ember Bridge system for smooth migration:

  • Routes ported to React render React components
  • Unported routes fall back to the existing Ember admin
  • Both share the same UI space seamlessly

Development

bash
# Start development server (from monorepo root)
pnpm dev

Testing

  • Unit tests (pnpm test:unit): Vitest + jsdom, colocated *.test.ts(x) files.
  • Acceptance tests (pnpm test:acceptance): the real app in real Chromium against a fake admin API served through MSW — see test-utils/acceptance/README.md.
  • Browser e2e against a real Ghost instance lives in the top-level e2e/ workspace.

Building for Production

bash
# Build production bundle
pnpm nx run @tryghost/admin:build

This outputs to apps/admin/dist/ and updates the assets in ghost/core/core/built/admin/.