COMP 2804 Lecture 20: Lecture 20

78 views3 pages

Document Summary

Display as a page as a text file. Do res. send of a big string with each thing terminated by a new line. You should be sending the file as a text on the page. First and second part of the assignment is about adding a new functionality and is in the exam storage code. The last two parts are already implemented in assignment 5 analyzelogs, but you just need to change it to a single file. App require is now in the server directory. We set the port, create the server and it start listening on port 3000. server. We are specifying the ssl keys, doing logging in and has cookies. app. use(express. static( public")); is serving everything from public directory. routes. js. Userscollection contains documents which has a username and a password. The function storesaltedpassword stores the username and password in userscollection.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents