Skip to content

sahilranadive/node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node.js

Created web server and basic application

  1. webpage.js is the node.js file and input.txt and new_html.html are two test smples for output of webpage.js
  2. read_html.js is hardcoded with the filename whereas webpage.js takes input from the url
  3. Find the output at: http://127.0.0.1:8081/input.txt for webpage.js and http://127.0.0.1:8080/ for read_html.js
  4. read_html.js also prints out a statement in the console.
  5. read_html.js also creates a new file output.txt and write the contents of input to it.
  6. image.js displays an image stored in a folder named public which is in the same directory as image.js add the path of the image ahead of the url for the local host as http://127.0.0.1:8080/images/fjords.jpg
  7. calculator.js takes two numbers as arguments from the webpage and the operation as well, it performs the operation and displays the output
  8. index.htm is used to develop the frontend.

About

Created web server and basic application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published