diff --git a/index.js b/index.js index 0d2eb38..54910ea 100644 --- a/index.js +++ b/index.js @@ -25,15 +25,17 @@ const hbs = handlebars.create({ partialsDir: __dirname + '/src/views/partials', }); +// database configuration // database configuration const dbConfig = { host: 'db', // the database server port: 5432, // the database port - database: process.env.POSTGRES_DB, // the database name - user: process.env.POSTGRES_USER, // the user account to connect with - password: process.env.POSTGRES_PASSWORD, // the password of the user account + database: "users_db", // the database name + user: "postgres", // the user account to connect with + password: "pwd", // the password of the user account }; + const db = pgp(dbConfig); // test your database