databse remote connection
This commit is contained in:
9
express-server/db-config/keys.js
Normal file
9
express-server/db-config/keys.js
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports ={
|
||||
postgresSQL:{
|
||||
user:"postgres",
|
||||
host:"188.166.124.80",
|
||||
database:"smartshopperdb",
|
||||
password:"postgres",
|
||||
port:"5432"
|
||||
}
|
||||
}
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user