Reference no: EM133218713
1. Consider a client requests the server to view his profile, which is available in "19BIT0-- -info.html". Implement it using the Node.js file system module.
2. Develop a small application for the Basketball scoreboard using Node.js event handling. Here, we have a scoreKeeper.on() event-listener listening for an event that would indicate a basket being made. Each scoring attempt is a call of the shoot_a_basket function. If the ball goes in the net (indicated by a true value for the shot), scoreKeeper.emit() is called, which alerts all event-listeners listening for the make_basket event announcement to run their callback function, and passes the value of the basket made. Display the scores of each team
5. i) We have to create a web application with username in HTML and node.js using the express framework to handle different types of HTTP requests namely get, post, put, options, and delete.
ii) Provide different route paths for each of the requests.
iii) Display the different request types with the username in the browser when the application is executed.
6. i) We have to create an HTML and node.js program for creating and storing session information of the user. The HTML page contains username, password, remember me next time checkbox option and a login button.
ii) Assume, the user name and password are already registered in the node.js server.
iii) Perform the following:
a. If the user enters an invalid user username or password, display an appropriate error message.
b. After successful login, display a welcome message.
c. Allow the user to enter the username and password for 3 times. If the user enters username and password more than 3 times, display the message "you are blocked".
7. A company database maintains the vehicle information of their employees. It stores the information empid(int), vehicle number(string/int), owner name(string), brand name(string) and year of purchase(int).
a)We have to create a Collection in MongoDB with the above fields and insert 10 documents at least.
b) We have to create an HTML form using NodeJS and express for the employee to change the details when he/she changes his/her vehicle by submitting his/her empid and the new vehicle details. The form creation should use CSS for making it interactive and Use ExpressJS at the server-side.