Using node.js create a system that includes a "library" of books and information about the books, such as title, a description, author, publisher, ISBN. Include, at least, 12 books in the "library". Now create two people who like books and use the "Shared State" concept to demonstrate what each person's (you and another one) favorite book is.
What to turn in:
1. All code and related files (as created via the IDE, so I can run it), compressed using zip.
2. Lots of screenshots demonstrating the ability to search for books and the ability for you and Bucky to have a favorite book.
Given: here we have to create a system which should have library of books and info of that using node.js and also we are asked to create 2 people who like books and use shared state concept to know favourite book of each person
My answer:
step 1:first of all let us know abour node.js it is basically an open source, javascript runtime environment that executes java script code usually outside of web browser
step 2:we have to import whatever the modules needed
step 3:we have to create instance and call server using listen method we need to bind it with port here we have to give coding to create a library of books and also info about the books and also include 2 persons who like books and implement shared state concept after giving it we should wait for a request from port on the local machine
step4:here we have put 3rd and 4th together into a file sample.js and start HTTP server
step 5:now start the server by executing sample.js
step 6:check whether the output server has been started
step 7:now make request to node.js server and observe the result as per the given question we have created library of books systems with neccessary information
Get Answers For Free
Most questions answered within 1 hours.