initial commit.

This commit is contained in:
Jordan
2024-01-12 17:19:49 -08:00
commit c3435a5e81
12 changed files with 4813 additions and 0 deletions

13
src/db.js Normal file
View File

@ -0,0 +1,13 @@
// Importing the Knex library
import knex from 'knex';
import 'dotenv/config'
if (!process.env.DB_URL) {
fail("Ensure you set DB_URL");
};
// Creating an instance of Knex
export const db = knex({
client: 'postgres',
connection: process.env.DB_URL
});