Steps to compile and run the application
You must have the node, installed on your system globally
Extract the file RAJESH_KUMAR_so_node_test.zip;
Open folder in text-editor
Go inside the RAJESH_KUMAR_so_node_test through CMD command interface.
run comand 'npm install --save' then run application by 'node app.js'
-
The Marco Polo Game
a. Put the url http://localhost:3000/api/marco_polo in your brower. b. See the expected output in terminal. On success it will display 'handled by process *****'. Note : This will work perfectly on Mac than windows -
A Simple Question about NodeJs
Q. When is it a good idea to not use NodeJs? Why? Node JS is not suitable for high intensive CPU computational tasks as it is single threaded.So it is not good for CPU intensive applications. It is also not suitable for applications which require multi-threaded programmings. Use Node.js when you have highly I/O-bound operations that don’t use much CPU. -
Implementing a User Story
a. Put the url http://localhost:3000/api/user_story in your brower. b. See the expected output in terminal or in file output_user_story_1.txt the file output_ user_story_1.txt will be created automatically in you application on successfully compilation.