Monorepo Overview

The Scalex monorepo is managed with pnpm workspaces and Turborepo.

scalex-monorepo/
├── apps/
│   ├── api-portal/    Swagger UI on Vercel (see [[api-portal]])
│   ├── docs/          This Digital Garden (Quartz v4)
│   ├── static/        Astro — landing pages, privacy policy, public offer
│   └── web/           Main web application (Next.js)
├── packages/
│   ├── db/            Drizzle ORM schema and generated types
│   ├── ui/            Shared React component library
│   ├── typescript-config/
│   └── eslint-config/
├── supabase/
│   ├── functions/api/ Hono edge function (Deno runtime)
│   ├── migrations/    Drizzle-generated SQL migrations
│   ├── config.toml
│   └── seed.sql
└── bruno/             API test collection

Key Commands

CommandWhat it does
pnpm devStart all apps in dev mode (turbo)
pnpm buildBuild all apps
pnpm db:generateGenerate Drizzle migration SQL
pnpm supabase:startStart local Supabase stack
pnpm supabase:typesRegenerate TypeScript types from remote schema

See supabase-setup for the full Supabase development workflow.

Ports (local dev)

AppPort
web3000
docs8080
static3002
Supabase Studio54323
Supabase API54321