node. JS Tutorial
Nodejs
Simply put, node. JS is the JavaScript that runs on the server.
node. JS is a platform built on the Chrome JavaScript runtime.
node. JS is an event-driven I/O server-side JavaScript environment, based on the Google V8 engine, the V8 engine executes JavaScript very quickly and with great performance.
Who is suitable to read this tutorial?
If you're a front-end programmer and you don't know a dynamic programming language like PHP, Python, or Ruby, then you want to create your own service, then node. JS is a great choice.
node. JS is JavaScript running on the server, and if you're familiar with JavaScript, you'll easily learn to node. js.
Of course, if you're a back-end programmer and want to deploy some high-performance services, learning node. JS is also a great option.
Before you learn this tutorial you need to understand
Before you continue this tutorial, you should be aware of some basic computer programming terminology. If you've studied programming languages such as Javascript,php,java, it will help you get to know more about node. JS programming.
Version to use
We can use the following command to view the current Node version:
$ node-v
v4.4.3
Note: There may be differences between different versions.
First node. JS Program: Hello node. js Tutorial!
Script mode
Here's our first node. JS Program:
Instance
Console.log ("Hello node. js Tutorial");
Running Instances»
Save the file with the file name Helloworld.js and execute it via the node command:
Node Helloworld.js
After the program executes, normal, it will output Hello to the node. JS Tutorial in the terminal.
Interactive mode
Open terminal, type node into the command interaction mode, you can enter a code statement immediately after execution and display the results, for example:
$ node
> Console.log (' Hello node. js Tutorial! ');
Hello world!
node. JS Tutorial
node. JS Tutorial
node. JS installation Configuration
node. JS creates the first app
Introduction to NPM Usage
node. js REPL
node. JS callback function
node. js Event Loop
node. js Eventemitter
node. js Buffer
node. js Stream
Node. JS Module System
node. js function
node. JS Routing
node. JS Global Object
node. JS Common Tools
node. js File System
node. JS Get/post Request
node. JS Tool Module
node. JS Web Module
node. JS Express Framework
node. js RESTful API
node. JS Multi-process
node. js Jxcore Packaging
node. JS Tutorial