s3-3on/backend/db.js

13 lines
187 B
JavaScript
Raw Permalink Normal View History

2022-11-18 15:21:28 +01:00
const { Client } = require('pg');
const db = new Client({
user: 'postgres',
host: 'db',
database: 'chatdb',
password: 'password'
});
db.connect();
module.exports = db;