chore: remove all NestJS backend references, replace with Hono/Bun

- Delete nestjs-backend.md guideline (replaced by hono-server.md)
- Delete Dockerfile.nestjs-base and Dockerfile.nestjs templates
- Delete stale BACKEND_ARCHITECTURE.md doc (NestJS-era, obsolete)
- Update CLAUDE.md, GUIDELINES.md, authentication.md to Hono/Bun first
- Update all app CLAUDE.md files: backend/ → server/, NestJS → Hono+Bun
- Update all app package.json files: @*/backend → @*/server
- Update docs: LOCAL_DEVELOPMENT, PORT_SCHEMA, ENVIRONMENT_VARIABLES,
  DATABASE_MIGRATIONS, MAC_MINI_SERVER, PROJECT_OVERVIEW
- Update scripts: generate-env.mjs, setup-databases.sh, build-app.sh
- Update CI/CD: cd-macmini.yml backend → server paths
- Update Astro docs site: @chat/backend → @chat/server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 16:52:25 +02:00
parent 708299b35e
commit ab387b9b3d
43 changed files with 598 additions and 2398 deletions

View file

@ -15,7 +15,7 @@
```
apps/nutriphi/
├── apps/
│ ├── backend/ # NestJS API server (@nutriphi/backend)
│ ├── backend/ # Hono/Bun compute server (@nutriphi/server)
│ │ └── src/
│ │ ├── main.ts
│ │ ├── app.module.ts
@ -71,7 +71,7 @@ apps/nutriphi/
pnpm nutriphi:dev
# Individual apps
pnpm dev:nutriphi:backend # Backend (port 3015)
pnpm dev:nutriphi:server # Backend (port 3015)
pnpm dev:nutriphi:web # Web app (port 5180)
pnpm dev:nutriphi:landing # Landing page (port 4323)
pnpm dev:nutriphi:app # Web + backend together
@ -108,7 +108,7 @@ pnpm build # Build for production
| Layer | Technology |
|-------|------------|
| **Backend** | NestJS 10, Drizzle ORM, PostgreSQL |
| **Backend** | Hono + Bun, Drizzle ORM, PostgreSQL |
| **AI** | Google Gemini 2.5 Flash |
| **Web** | SvelteKit 2.x, Svelte 5 (runes mode), Tailwind CSS 4 |
| **Landing** | Astro 5.x, Tailwind CSS |
@ -306,7 +306,7 @@ GEMINI_API_KEY=your-gemini-api-key
pnpm dev:nutriphi:app
# Or individually:
pnpm dev:nutriphi:backend # Terminal 1
pnpm dev:nutriphi:server # Terminal 1
pnpm dev:nutriphi:web # Terminal 2
pnpm dev:nutriphi:landing # Terminal 3
```

View file

@ -5,17 +5,17 @@
"description": "NutriPhi - AI-powered nutrition tracking with photo analysis",
"scripts": {
"dev": "pnpm run --filter=@nutriphi/* --parallel dev",
"dev:backend": "pnpm --filter @nutriphi/backend dev",
"dev:server": "pnpm --filter @nutriphi/server dev",
"dev:web": "pnpm --filter @nutriphi/web dev",
"dev:landing": "pnpm --filter @nutriphi/landing dev",
"db:push": "pnpm --filter @nutriphi/backend db:push",
"db:studio": "pnpm --filter @nutriphi/backend db:studio",
"db:seed": "pnpm --filter @nutriphi/backend db:seed",
"test": "pnpm --filter @nutriphi/backend test && pnpm --filter @nutriphi/shared test && pnpm --filter @nutriphi/web test",
"test:backend": "pnpm --filter @nutriphi/backend test",
"db:push": "pnpm --filter @nutriphi/server db:push",
"db:studio": "pnpm --filter @nutriphi/server db:studio",
"db:seed": "pnpm --filter @nutriphi/server db:seed",
"test": "pnpm --filter @nutriphi/server test && pnpm --filter @nutriphi/shared test && pnpm --filter @nutriphi/web test",
"test:backend": "pnpm --filter @nutriphi/server test",
"test:web": "pnpm --filter @nutriphi/web test",
"test:shared": "pnpm --filter @nutriphi/shared test",
"test:cov": "pnpm --filter @nutriphi/backend test:cov"
"test:cov": "pnpm --filter @nutriphi/server test:cov"
},
"devDependencies": {
"typescript": "^5.9.3"