Programming — MEAN Stack

Moditha Pahan
Jul 7, 2022

--

-Creating an HTTP Webserver with Node.js-

  1. first of all open vs code and open a new folder.
My folder name is JS.

2.Open the terminal and type npm init or npm init -y.

Press enter key and submit the necessary details. After that will be create a package.json file.

3.Create a file called app.js inside the JS folder.

4.Write the code.

5.Go to the console and type node app.js and hit enter.

Press the ctrl key & Click on the terminal link.

6.Get the output.

--

--