Write login route that accepts a username and password


Problem

1. Use jQuery AJAX API to write function that will access books.json file on the server (the one the website is served from) and update a DOM element with id 'book'

2. Use the Bootstrap framework to write the HTML code that will display 3 columns and 4 rows.

3. Use bcrypt.js to check if user has entered the correct password 'secret123'. If password is correct, log 'Logged in' in the console output. If password is wrong, log the error message in the console output.

4. Write module that will host an HTTPS server on port 4433. The code should read in the contents of the HTTPS certificate (certificate.crt) and key (certificate.key) located in a folder called 'admin'. Once the HTTPS server starts, it should log 'Express https server listening on port 4433'.

5. Write login route that accepts a username and password and attempts to login a user. HINT: you will need to retrieve some data from a database before performing an operation using bcrypt to determine if the user provided the correct password.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write login route that accepts a username and password
Reference No:- TGS03277096

Expected delivery within 24 Hours