Development Setup
이 내용은 아직 번역본이 없습니다.
Prerequisites
| Tool | Version | Check |
|---|---|---|
| Node.js | ≥ 20 | node -v |
| pnpm | 10.11.0 | pnpm -v |
| Git | Latest | git --version |
Setup
-
Install pnpm (if not installed)
Terminal window corepack enablecorepack prepare pnpm@10.11.0 --activate -
Clone and install
Terminal window git clone https://github.com/soundbluemusic/public-monorepo.gitcd public-monorepopnpm install -
Run development server
Terminal window pnpm dev:contextTerminal window pnpm dev:permissiveTerminal window pnpm dev:roots
IDE Setup
VS Code
Recommended extensions:
- Biome — Linting and formatting
- Tailwind CSS IntelliSense — CSS autocomplete
- TypeScript — Type checking
Settings
The project includes .vscode/settings.json with recommended settings.
Project Scripts
Development
| Command | Description |
|---|---|
pnpm dev:context | Run Context at http://localhost:3003 |
pnpm dev:permissive | Run Permissive at http://localhost:3004 |
pnpm dev:roots | Run Roots at http://localhost:3005 |
Building
| Command | Description |
|---|---|
pnpm build | Build all apps |
pnpm build:context | Build Context only |
pnpm build:permissive | Build Permissive only |
pnpm build:roots | Build Roots only |
Quality
| Command | Description |
|---|---|
pnpm lint | Check with Biome |
pnpm format | Format with Biome |
pnpm typecheck | TypeScript check |
pnpm test | Run Vitest |
pnpm test:e2e | Run Playwright |
Turborepo
The project uses Turborepo for build orchestration:
- Caching — Local cache in
.turbo/ - Parallelization — Concurrent builds
- Dependencies — Automatic build order
Database (Context App)
Context uses Cloudflare D1. For local development:
cd apps/contextpnpm wrangler d1 execute context-db --local --command "SELECT COUNT(*) FROM entries"Troubleshooting
Build errors
# Clear caches and rebuildrm -rf node_modules .turbopnpm installpnpm buildType errors
# Regenerate route typespnpm typecheck