


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



The first thing I have to do that create “pg_config.js” file to configure with database on Postgres.
Next, I create Authenticator to select Username and Password from Postgresql.
Then I make a form to Login how to create login.ejs file.
Finally. I render login page and check req to database if true, res.render for user page, if false, res.render for login page and send a message “wrong user password”.
I type command “npm start” to run program.
Finally I try type correct username and password. The result as image below.