Initial commit: everythingbutwork MVP
Internes Project-Management-Tool für ToolCTRL — ergänzend zu Plane (Tickets) und Outline (Doku). Umfasst Puls-Übersicht, Tagesrhythmus (Lock-in + Reflexion), Bereichs-Detail-Views (Entwicklung/Vertrieb/Marketing), Pflicht-Minimum-Check und Blocker-Lifecycle gemäß Projektmanagement-Leitfaden v3.0. Stack: pnpm-Monorepo · Vite + React 18 + Tailwind · Fastify + tRPC v11 + Drizzle ORM · Postgres 16 · Authentik OIDC (Phase 2, Dev-Auto-Login aktiv). Planungs-Artefakte unter _bmad-output/planning-artifacts/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
4f33509a0f
131 files changed
+34339
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { createDbClient, type Db } from '@cockpit/db';
|
||||
import type pg from 'pg';
|
||||
import { loadEnv } from './env.js';
|
||||
|
||||
let cached: { db: Db; pool: pg.Pool } | undefined;
|
||||
|
||||
export function getDb(): { db: Db; pool: pg.Pool } {
|
||||
if (cached) return cached;
|
||||
const env = loadEnv();
|
||||
cached = createDbClient({ connectionString: env.DATABASE_URL });
|
||||
return cached;
|
||||
}
|
||||
Reference in new issue
Block a user