Skip to content

Quick Start

Prerequisites

  • Node.js 20.x or later
  • pnpm 9.x (corepack enable && corepack prepare pnpm@9 --activate)
  • Access to the GitHub repository

Setup

  1. Clone the repository

    Terminal window
    git clone https://github.com/Fused-Gaming/brettjohnson.git
    cd brettjohnson
  2. Install dependencies

    Terminal window
    pnpm install
  3. Configure environment variables

    Terminal window
    cp .env.example .env.local

    Open .env.local and fill in the required values. At minimum for local dev:

    • NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY (from your Supabase project)
    • NEXT_PUBLIC_TURNSTILE_SITE_KEY — use the Cloudflare test key for local dev

    See the Environment Registry for the full variable list.

  4. Start development servers

    Terminal window
    pnpm dev

    Starts all apps in parallel via Turborepo.

Project Structure

brettjohnson-xyz/
├── apps/
│ ├── www/ # Main marketing site (brettjohnson.xyz)
│ ├── api/ # Backend API (api.brettjohnson.xyz)
│ ├── docs/ # This documentation site (docs.brettjohnson.xyz)
│ ├── book/ # Booking portal stub
│ ├── media/ # Media portal stub
│ ├── podcast/ # Podcast hub stub
│ └── training/ # Training portal stub
├── packages/ # Shared packages (UI, utilities, email templates)
├── docs/ # Source documentation files (Markdown)
├── .github/ # CI/CD workflows, issue templates
├── CLAUDE.md # Brand blueprint and engineering spec
├── ROADMAP.md # Milestone tracker
└── CONTRIBUTING.md # Contribution guide

Available Commands

CommandDescription
pnpm devStart all apps in development mode
pnpm buildBuild all apps for production
pnpm lintRun ESLint across all apps
pnpm type-checkRun TypeScript compiler checks
pnpm testRun all unit tests
pnpm formatFormat all files with Prettier

Branching

All feature work branches from develop. See Branching Strategy for the full GitFlow model.

Terminal window
git checkout develop
git pull origin develop
git checkout -b feature/my-feature

Next Steps