From 95d0979f53e82219f168573d9bfb9bd1fd5f453b Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Mon, 15 Nov 2021 10:39:03 -0700 Subject: [PATCH] Begin adding support for PostgreSQL database storage --- database/database.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 database/database.js diff --git a/database/database.js b/database/database.js new file mode 100644 index 0000000..e653b9a --- /dev/null +++ b/database/database.js @@ -0,0 +1,9 @@ +const app = require('../app'); +const { Client } = require('pg'); + +if (process.env.NODE_ENV !== 'production' || process.env.NODE_ENV !== 'testing') { + require('dotenv').config(); +} + +const client = new Client(); +client.connect(); \ No newline at end of file