lots of layout; server not really running yet

This commit is contained in:
Mikayla Dobson
2022-11-17 18:08:31 -06:00
parent 798da777a9
commit 628d0dc04b
11 changed files with 2086 additions and 71 deletions

8
server/db/index.ts Normal file
View File

@@ -0,0 +1,8 @@
import createConnectionPool, { sql } from "@databases/pg";
import dotenv from 'dotenv';
dotenv.config({ path: '../.env' });
const db = createConnectionPool(process.env.CONSTRING);
export { sql };
export default db;