English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

NodeJS Basic Tutorial

NodeJS Express.js

NodeJS Buffer & URL;

NodeJS MySql

NodeJS MongoDB

NodeJS File (FS)

NodeJS Others

Node.js入门Example

After creating the file, you can run the file using the Node program on the command line interface or terminal.

~$ node node-js-example.js

If you do not see any echo in the terminal, it indicates that it is working properly and the HTTP server has started on port8087is listening. Now open any browser and click on the url, http://localhost:8087/  To view the html page that contains the server response, Node.js says hello! .

Let's take a look at the two lines of code written in this example.

This is just an example of how to get started with Node.js. In subsequent tutorials, we will delve into these concepts in detail.