Add database integration, auth API, admin/user portals, and deploy-db.sh

This commit is contained in:
2026-06-27 16:40:58 -05:00
parent 26559d4cf8
commit cc59177a74
25 changed files with 1423 additions and 118 deletions
+14
View File
@@ -0,0 +1,14 @@
import { Pool } from 'pg';
const connectionString = process.env.DATABASE_URL;
if (!connectionString) {
throw new Error('DATABASE_URL environment variable is not set');
}
export const db = new Pool({ connectionString });
export async function query(text: string, params?: unknown[]) {
const result = await db.query(text, params);
return result;
}