Monday, 2 January 2017

Hello World



After Setup Environment Variable...

 Let's create a Hello app

1. Open Notepad and paste below code

console.log("Hello Node!");

2. Save it with name of "hello.js" or you can choose
3. Now open command prompt

**************************************************
 node  folder_path\file_name.js
*************************************************

Node.js Environment setup



The source code written in source file is simply javascript. The Node.js interpreter will be used to interpret and execute your javascript code.
Node.js distribution comes as a binary installable for SunOS , Linux, Mac OS X, and Windows operating systems with the 32-bit (386) and 64-bit (amd64) x86 processor architectures.
Installation
1. Download latest version of Node.js installable archive file from Node.js Downloads.
2. Install the setup as normal
3. Copy the installation folder path. In my case - C:\Program Files\nodejs
4. Goto Environment  variable - 
My Computer ( Window 7 and below ) / This PC ( Window 10 )  --->  right click  --->
Properties  --->  Advance System Setting ---> Advance Tab --->  Environment variable ---> path ---> paste your node.js folder path ( In my case : C:\Program Files\nodejs ) ---> Ok