Overview
The monorepo uses Turborepo with pnpm workspaces. Each app inapps/ is independently deployable.
Step 1: Create App Directory
Step 2: Initialize Next.js
package.json:
Step 3: Configure TypeScript
Createtsconfig.json:
Step 4: Configure ESLint
Create.eslintrc.js:
Step 5: Create Basic Structure
app/layout.tsx
app/page.tsx
Step 6: Configure Next.js
Createnext.config.js:
Step 7: Configure Tailwind
Createtailwind.config.js:
Step 8: Add to Turborepo
Update rootturbo.json if needed:
Step 9: Install Dependencies
From repo root:Step 10: Run Development
Using Shared Packages
Database Access
UI Components
Adding App-Specific Tables
If your app needs new tables:- Use domain prefix:
newapp_table_name - Create migration in
supabase/migrations/ - Update SCHEMA.md
- Regenerate types
Environment Variables
Create.env.local in app directory or use root .env.local: