s3-3on/backend/db.js

13 lines
187 B
JavaScript
Executable File

const { Client } = require('pg');
const db = new Client({
user: 'postgres',
host: 'db',
database: 'chatdb',
password: 'password'
});
db.connect();
module.exports = db;