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
| Command | What it does |
|---|---|
pnpm dev | Start all apps in dev mode (turbo) |
pnpm build | Build all apps |
pnpm db:generate | Generate Drizzle migration SQL |
pnpm supabase:start | Start local Supabase stack |
pnpm supabase:types | Regenerate TypeScript types from remote schema |
See supabase-setup for the full Supabase development workflow.
Ports (local dev)
| App | Port |
|---|---|
| web | 3000 |
| docs | 8080 |
| static | 3002 |
| Supabase Studio | 54323 |
| Supabase API | 54321 |