docs/README.md
Welcome to the Ghost contributor documentation! This guide will help you understand the codebase, set up your development environment, and start contributing to Ghost.
First, fork the Ghost repository on GitHub, then:
# Clone your fork with submodules
git clone --recurse-submodules [email protected]:<YourUsername>/Ghost.git
cd Ghost
# Configure remotes
git remote rename origin upstream
git remote add origin [email protected]:<YourUsername>/Ghost.git
# Install dependencies and initialize submodules
corepack enable pnpm
pnpm run setup
# Start development (runs Docker backend services + frontend dev servers)
pnpm dev
Ghost will be available at:
If you encounter issues during setup:
# Fix dependency issues
pnpm fix
# Update to latest main branch
pnpm main
# Reset running dev data
pnpm reset:data
Ghost/
├── apps/ # Frontend applications
│ ├── admin-x-*/ # New React-based admin apps
│ ├── portal/ # Member portal
│ ├── comments-ui/ # Comments widget
│ ├── signup-form/ # Signup form widget
│ └── ...
├── ghost/ # Core Ghost application
│ ├── core/ # Main Ghost backend
│ ├── admin/ # Admin build output
│ └── i18n/ # Internationalization
├── e2e/ # End-to-end tests
├── adr/ # Architecture Decision Records
Before contributing, please read:
main branchThe adr/ directory contains Architecture Decision Records (ADRs) that document significant architectural decisions made in the project.
Ghost is open source software licensed under the MIT License.