This is a very basic example of Hello World in Node.js
Installation
*for newbies : Clone or download zip to your machine then hit this :
npm install
Steps for generating the package for node Js
- Create the Folder
mkdir foldername
- initialize the package using npm
npm init
-
Provide the details like 'package name, version and description etc'
-
package.json will created in folder
Install the express framework
npm install express --save
Create the index.js file
Start the node for running
node index.js
Now hit the below url to print the hello world
http://localhost:3000/