COMP 2804 Lecture 20: Lecture 20
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.