Docsity

Lab 5 Cloud Computing, Lab Reports of Computer Science

Toggle sidebar
bg1
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.
pf3
pf4

Partial preview of the text

Download Lab 5 Cloud Computing and more Lab Reports Computer Science in PDF only on Docsity!

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.