|
| 1 | +# Suggested Commands |
| 2 | + |
| 3 | +This project uses **mise monorepo mode** with `//path:task` syntax. |
| 4 | + |
| 5 | +## Setup Commands |
| 6 | + |
| 7 | +```bash |
| 8 | +# Install mise (if not installed) |
| 9 | +curl https://mise.run | sh |
| 10 | + |
| 11 | +# Install all runtimes (Node 24, Python 3.13, Flutter 3, pnpm 10, uv, Terraform) |
| 12 | +mise install |
| 13 | + |
| 14 | +# Install dependencies |
| 15 | +cd apps/web && pnpm install |
| 16 | +cd apps/api && uv sync --frozen |
| 17 | +cd apps/worker && uv sync --frozen |
| 18 | +cd apps/mobile && flutter pub get |
| 19 | +``` |
| 20 | + |
| 21 | +## Root Tasks (All Apps) |
| 22 | + |
| 23 | +| Command | Description | |
| 24 | +|---------|-------------| |
| 25 | +| `mise dev` | Start all services | |
| 26 | +| `mise lint` | Lint all apps | |
| 27 | +| `mise format` | Format all apps | |
| 28 | +| `mise test` | Test all apps | |
| 29 | +| `mise typecheck` | Type check all apps | |
| 30 | +| `mise i18n:build` | Build i18n files | |
| 31 | +| `mise gen:api` | Generate OpenAPI schema and API clients | |
| 32 | +| `mise tasks --all` | List all available tasks | |
| 33 | + |
| 34 | +## API (apps/api) - Python/FastAPI |
| 35 | + |
| 36 | +| Command | Description | |
| 37 | +|---------|-------------| |
| 38 | +| `mise //apps/api:dev` | Start development server | |
| 39 | +| `mise //apps/api:test` | Run tests | |
| 40 | +| `mise //apps/api:lint` | Run Ruff linter | |
| 41 | +| `mise //apps/api:format` | Format with Ruff | |
| 42 | +| `mise //apps/api:typecheck` | Type check with mypy | |
| 43 | +| `mise //apps/api:migrate` | Run DB migrations | |
| 44 | +| `mise //apps/api:migrate:create` | Create new migration | |
| 45 | +| `mise //apps/api:gen:openapi` | Generate OpenAPI schema | |
| 46 | +| `mise //apps/api:infra:up` | Start local infra (PostgreSQL, Redis, MinIO) | |
| 47 | +| `mise //apps/api:infra:down` | Stop local infrastructure | |
| 48 | + |
| 49 | +## Web (apps/web) - Next.js/TypeScript |
| 50 | + |
| 51 | +| Command | Description | |
| 52 | +|---------|-------------| |
| 53 | +| `mise //apps/web:dev` | Start development server | |
| 54 | +| `mise //apps/web:build` | Production build | |
| 55 | +| `mise //apps/web:test` | Run Vitest tests | |
| 56 | +| `mise //apps/web:lint` | Run Biome linter | |
| 57 | +| `mise //apps/web:format` | Format with Biome | |
| 58 | +| `mise //apps/web:typecheck` | Type check with tsc | |
| 59 | +| `mise //apps/web:gen:api` | Generate API client (Orval) | |
| 60 | + |
| 61 | +## Worker (apps/worker) - Python/FastAPI |
| 62 | + |
| 63 | +| Command | Description | |
| 64 | +|---------|-------------| |
| 65 | +| `mise //apps/worker:dev` | Start worker | |
| 66 | +| `mise //apps/worker:test` | Run tests | |
| 67 | +| `mise //apps/worker:lint` | Run Ruff linter | |
| 68 | +| `mise //apps/worker:format` | Format with Ruff | |
| 69 | + |
| 70 | +## Mobile (apps/mobile) - Flutter/Dart |
| 71 | + |
| 72 | +| Command | Description | |
| 73 | +|---------|-------------| |
| 74 | +| `mise //apps/mobile:dev` | Run on device/simulator | |
| 75 | +| `mise //apps/mobile:build` | Build app | |
| 76 | +| `mise //apps/mobile:test` | Run Flutter tests | |
| 77 | +| `mise //apps/mobile:lint` | Run flutter analyze | |
| 78 | +| `mise //apps/mobile:format` | Format with dart format | |
| 79 | +| `mise //apps/mobile:gen:l10n` | Generate localizations | |
| 80 | +| `mise //apps/mobile:gen:api` | Generate API client (swagger_parser) | |
| 81 | + |
| 82 | +## Infrastructure (apps/infra) - Terraform |
| 83 | + |
| 84 | +| Command | Description | |
| 85 | +|---------|-------------| |
| 86 | +| `mise //apps/infra:init` | Initialize Terraform | |
| 87 | +| `mise //apps/infra:plan` | Preview changes | |
| 88 | +| `mise //apps/infra:apply` | Apply changes | |
| 89 | +| `mise //apps/infra:plan:prod` | Preview production | |
| 90 | +| `mise //apps/infra:apply:prod` | Apply production | |
| 91 | + |
| 92 | +## i18n (packages/i18n) |
| 93 | + |
| 94 | +| Command | Description | |
| 95 | +|---------|-------------| |
| 96 | +| `mise //packages/i18n:build` | Build i18n files for web and mobile | |
| 97 | +| `mise //packages/i18n:build:web` | Build for web only | |
| 98 | +| `mise //packages/i18n:build:mobile` | Build for mobile only | |
| 99 | + |
| 100 | +## Fastlane (Mobile CI/CD) |
| 101 | + |
| 102 | +```bash |
| 103 | +cd apps/mobile |
| 104 | +bundle install |
| 105 | + |
| 106 | +# Android |
| 107 | +bundle exec fastlane android build # Build APK |
| 108 | +bundle exec fastlane android firebase # Deploy to Firebase App Distribution |
| 109 | + |
| 110 | +# iOS |
| 111 | +bundle exec fastlane ios build # Build iOS (no codesign) |
| 112 | +bundle exec fastlane ios testflight_deploy # Deploy to TestFlight |
| 113 | +``` |
| 114 | + |
| 115 | +## System Utils (Darwin/macOS) |
| 116 | + |
| 117 | +```bash |
| 118 | +# Git operations |
| 119 | +git status |
| 120 | +git diff |
| 121 | +git log --oneline -10 |
| 122 | +git add <files> |
| 123 | +git commit -m "message" |
| 124 | + |
| 125 | +# File operations |
| 126 | +ls -la |
| 127 | +find . -name "*.py" -type f |
| 128 | +grep -r "pattern" --include="*.ts" |
| 129 | + |
| 130 | +# Docker |
| 131 | +docker compose -f apps/api/docker-compose.infra.yml up -d |
| 132 | +docker compose -f apps/api/docker-compose.infra.yml down |
| 133 | +docker compose -f apps/api/docker-compose.infra.yml down -v # with volume cleanup |
| 134 | +``` |
0 commit comments