Shop integration

This commit is contained in:
2026-01-14 17:47:58 +01:00
parent be7f7b7bf7
commit 21b78f8d17
52 changed files with 5288 additions and 198 deletions

View File

@@ -0,0 +1,23 @@
const { Pool } = require('pg');
require('dotenv').config();
const pool = new Pool({
user: process.env.DB_USER,
host: process.env.DB_HOST,
database: process.env.DB_NAME,
password: process.env.DB_PASSWORD,
port: process.env.DB_PORT,
});
async function test() {
try {
const res = await pool.query('SELECT NOW()');
console.log('Connection successful:', res.rows[0]);
} catch (err) {
console.error('Connection failed:', err);
} finally {
await pool.end();
}
}
test();