1.2 KiB
1.2 KiB
FamChore v2 — Development Memory
Architecture Decisions
2026-06-23 — Monorepo & Docker Setup
- Ports: Frontend =
2080, Proxy =3456, Container ext =3001. Port3000reserved/conflict. - Shared config:
config.tsat root for dev/build-time values (e.g.PROXY_PORT). Runtime config via env vars..envtracks ports,.env.examplecommitted. - Docker: 2 Dockerfiles —
Dockerfile(prod, multi-stage with nginx) andDockerfile.dev(PocketBase for dev). - Nginx: Prod container uses nginx to route
/api/*→ Hono (:3456),/*→ SvelteKit (:2080). - Dev workflow:
pnpm devat root runs SvelteKit + Hono in parallel. PocketBase viaDockerfile.dev. - Proxy runtime: Uses
process.env.PROXY_PORTinstead of importingconfig.ts(avoidsrootDirissues intsc).
2026-06-23 — Hono Proxy for All Data; Svelte Reactivity Only
- All data operations (reads and writes) go through the Hono proxy, never directly to PB SDK.
- UI reactivity is purely Svelte
$state/$derived/$effect— no PB SDK.subscribe()/ SSE. - The
/debugpage's PB SDKsubscribe()was experimental only; final apps fetch via Hono proxy and update Svelte state reactively.