This guide provides detailed instructions for setting up the codexcrmapp monorepo, configuring authentication and database access, implementing the first feature (Clients), and adding basic tests. Follow these steps sequentially.

Phase 0: Prerequisites & Initial Setup

Make sure you have the necessary tools installed and your current code is saved.

  1. Check System Tools:

  2. Commit Current Code:

  3. Navigate to Repository Root:


Phase 1: Monorepo Structure & Configuration

Establish the core multi-package workspace structure.

  1. Initialize Monorepo Directory Structure:

  2. Relocate Root-Level Configuration:

  3. Define pnpm Workspace:

  4. Initialize Individual Packages:

  5. Understand Folder Responsibilities & Secrets:

  6. Configure TypeScript Path Aliases:

  7. Install Dependencies & Link Workspace:

  8. Update Import Paths (Iterative Task):

  9. (Optional but Recommended) Implement Shared ESLint Config: