const { Pool } = require('pg');
const pool = new Pool({
host: '127.0.0.1',
user: 'andrejkolosov',
password: 'ipadib339',
port: 5432,
database: 'docker'
});
module.exports = pool
//tsconfig
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"types": ["node"],
"lib": ["es6", "dom"],
"allowJs": true,
"outDir": "dist",
"rootDir": "src",
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"@types/*": ["./src/types/*"]
}
},
"include": [
"src/**/*"
]
}