Commit Graph

60 Commits

Author SHA1 Message Date
m
1fc0874893 feat: add database schema and backend foundation
Part 1 - Database (kanzlai schema in Supabase):
- Tenant-scoped tables: tenants, user_tenants, cases, parties,
  deadlines, appointments, documents, case_events
- Global reference tables: proceeding_types, deadline_rules, holidays
- RLS policies on all tenant-scoped tables
- Seed: UPC proceeding types, 32 deadline rules (INF/CCR/REV/PI/APP),
  ZPO civil rules (Berufung, Revision, Einspruch), 2026 holidays

Part 2 - Backend skeleton:
- config: env var loading (DATABASE_URL, SUPABASE_*, ANTHROPIC_API_KEY)
- db: sqlx connection pool with kanzlai search_path
- auth: JWT verification middleware adapted from youpc.org, context helpers
- models: Go structs for all tables with sqlx/json tags
- router: route registration with auth middleware, /health + placeholder API routes
- Updated main.go to wire everything together
2026-03-25 13:17:33 +01:00
m
193a4cd567 refactor: rename to KanzlAI-mGMT, pivot to Kanzleimanagement
New direction: law firm management (Fristen, Termine, case tracking)
instead of UPC case law search. Updated all references, Go module
path, and deployment info.
2026-03-25 12:40:15 +01:00
m
792d084b4f fix: use node fetch for frontend health check
wget in node:22-alpine can't connect to localhost:3000 — use
node's built-in fetch instead, which works correctly.
2026-03-24 23:47:36 +01:00
m
ff9a6f3866 fix: use expose instead of ports for Dokploy/Traefik compatibility
Port 3000 conflicts with Dokploy. Traefik routes traffic via
Docker network, so expose is sufficient. Also remove env_file
refs since Dokploy injects env vars directly.
2026-03-24 23:43:11 +01:00
m
83a18a0a85 build: add Docker Compose setup for Dokploy deployment 2026-03-24 19:25:48 +01:00
m
b797b349e7 build: add Docker Compose setup for Dokploy deployment
- Multi-stage Dockerfile for Go backend (golang:1.25-alpine -> alpine:3)
- Multi-stage Dockerfile for Next.js frontend (bun:1 -> node:22-alpine)
- docker-compose.yml with backend + frontend services, health checks
- Next.js standalone output + API rewrites to proxy /api/* to backend
- .dockerignore files for both services
- .env.example documenting required environment variables
2026-03-24 19:20:49 +01:00
m
b2139b046e feat: scaffold monorepo with Go backend + Next.js 15 frontend 2026-03-24 18:36:12 +01:00
m
e9bb6a7960 feat: scaffold monorepo with Go backend + Next.js 15 frontend
- Root monorepo: /backend (Go) + /frontend (Next.js 15)
- Go module: mgit.msbls.de/m/KanzlAI with minimal HTTP server
- Next.js 15: TypeScript strict, Tailwind CSS v4, App Router, Bun
- Root Makefile: dev, build, lint, test targets
- Root .gitignore covering Go, Node, IDE, OS files
- CLAUDE.md updated with project structure and tech stack
- .claude/CLAUDE.md with coding conventions (Go stdlib style, TS strict)
2026-03-24 18:32:50 +01:00
m
8688da0a60 feat: add CLAUDE.md project instructions 2026-03-24 16:16:00 +01:00
mAi
a7940fa2fa Initial commit 2026-03-24 15:15:32 +00:00