databse remote connection

This commit is contained in:
Lukas Nowy
2018-11-14 00:19:07 +01:00
parent 5bfa3a4007
commit c94a631b1a
6664 changed files with 209 additions and 824596 deletions

View File

@ -0,0 +1,9 @@
module.exports ={
postgresSQL:{
user:"postgres",
host:"188.166.124.80",
database:"smartshopperdb",
password:"postgres",
port:"5432"
}
}

View File

@ -6,7 +6,7 @@ const client = new Client(postgresSQL);
async function connect() {
try{
await client.connect();
console.log("connected!");
console.log("Database connected!");
}
catch(error)
{