Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 540 Bytes

ex_8.md

File metadata and controls

23 lines (21 loc) · 540 Bytes

Exercise 8

  • Create the following folder/file structure:
/ex_8
  |-- index.js

index.js

  • Create an HTTP web server using port 3001
  • Execute an HTTP request to the server using the browser
  • The server will send the following text as response:
Congrats you're using your first Node.js Web Server
  • When the server starts it needs to show the following message:
This HTTP server is running on port %port%
  • In case there's an error show the following message:
Unable to start the server on port %port%