feat: things are happening...

This commit is contained in:
Daniel Ledda
2022-07-10 23:07:51 +02:00
parent ba68f953f0
commit fb9f78caf7
22 changed files with 448 additions and 207 deletions

View File

@@ -1,13 +1,15 @@
const config = {
username: Deno.env.get("DB_USER") ?? "postgres",
hostname: Deno.env.get("DB_HOST") ?? "localhost",
password: Deno.env.get("DB_PW") ?? "",
dbUsername: Deno.env.get("DB_USER") ?? "postgres",
dbHostname: Deno.env.get("DB_HOST") ?? "localhost",
dbPassword: Deno.env.get("DB_PASS") ?? "",
dbPort: Number(Deno.env.get("DB_PORT") ?? 5432),
hostname: Deno.env.get("HOST") ?? "localhost",
port: Number(Deno.env.get("PORT") ?? 8080),
};
console.log(`ENV:
db username: ${config.username}
db username: ${config.dbUsername}
db hostname: ${config.dbHostname}
db pass: ******
db port: ${config.dbPort}
server port: ${config.port}