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