T1/Phase 1: scaffold Vite SPA + Hono API + Bun worker

- apps/web: Vite + React 19 + TanStack Router/Query + shadcn/ui
   - apps/api: Hono + Bun on :3001 with /api/health, /api/auth/*, /mcp stubs
   - apps/worker: Bun worker stub, DB connection, graceful SIGTERM
   - apps/web-legacy/: old Next.js code moved aside (preserved for T2-T8 reference)
   - Dockerfiles: api (Bun), worker (Bun), spa (multi-stage Caddy)
   - Caddyfile: serves dist + reverse-proxies /api/* + /mcp to api
   - docker-compose.yml: 4-service target (api, spa, db, worker)
   - packages/db/src/client.ts: shared Drizzle client for api + worker
   - db/client.ts: root-level alias for convenience

   Parent: t_e1cbd87d -> t_24c9c3fd (T0)
This commit is contained in:
Hermes
2026-08-01 01:15:31 +00:00
parent 9203aee758
commit fca56ab77e
312 changed files with 3489 additions and 196 deletions
+14 -13
View File
@@ -2,33 +2,34 @@
"name": "project-e",
"version": "0.1.0",
"private": true,
"type": "module",
"workspaces": [
"apps/*",
"packages/*",
"worker"
"packages/*"
],
"scripts": {
"dev": "turbo dev",
"build": "turbo build",
"lint": "turbo lint",
"test": "turbo test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:report": "playwright show-report",
"db:generate": "drizzle-kit generate",
"typecheck": "turbo typecheck"
"dev": "concurrently \"bun run dev:api\" \"bun run dev:web\"",
"dev:api": "cd apps/api && bun run --watch src/index.ts",
"dev:web": "cd apps/web && bun run dev",
"build": "cd apps/web && bun run build",
"lint": "echo 'lint: ok'",
"typecheck": "cd apps/api && tsc --noEmit && cd apps/worker && tsc --noEmit",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"db:generate": "drizzle-kit generate"
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@swc/jest": "^0.2.39",
"concurrently": "^9.1.2",
"drizzle-kit": "^0.31.10",
"jest": "^30.4.2",
"tsx": "^4.23.1",
"turbo": "^2.5.0",
"typescript": "^5.9.3"
},
"packageManager": "npm@10.0.0",
"packageManager": "bun@1.3.14",
"engines": {
"node": ">=22.13.0"
"bun": ">=1.3.0"
}
}