Friday, November 27, 2015

How to use NodeJS in Window 7?



NodeJS is Server side scripting language written in JavaScript. It is open source and run within nodejs runtime. NodeJS provides non-blocking I/O API and event-driven architecture.

Required tools in System:

  1. Nodejs Source code
  2. Notepad

Step-1 : Install NodeJS


Download NodeJS soure code and install in system.(Download NodeJS).

Step-2 : Creating directory for NodeJS code


Open targeted drive and create directory in which all NodeJS code will store. Suppose we are creating directory in D drive.



Step-3 : Open notepad and create NodeJS code


Write NodeJS program code and save with .js extension in proper directory.


 Step-4 : Open NodeJS Command Prompt



Locate NodeJS code directory to run the program.


 
Now we run Nodejs file with node command



Output


No comments:

Post a Comment