Who should take this tutorial?
If you are a front-end programmer, you do not know like PHP, Python or Ruby and other dynamic programming language, and you want to create your own service, Node.js is a very good choice.
Of course, if you are a back-end programmer, I want to deploy some of the high-performance service, then learn Node.js is a very good choice.
Before this tutorial you need to know
The version used
We can use the following command to view the current version of Node:
$ node -v v4.4.3
Note: There may be differences between different versions.
First Node.js program: Hello World!
Here is our first Node.js program:
Running instance »
Save the file named helloworld.js, and executed by node command:
After program execution, normal, the terminal will output Hello World.
Open a terminal and type the command node enters interactive mode, and displays the results after the execution can immediately enter a code statement, for example:
$ node > console.log('Hello World!'); Hello World!
Gif examples demonstrate
Next we show you examples by Gif Pictured actions: