View on GitHub

reading-notes

What Is Node and When Should I Use It?

Node.js is an open source server environment,is free, runs on various platforms and uses JavaScript on the server.

Why Node.js?

A common task for a web server can be to open a file on the server and return the content to the client.

What Can Node.js Do?

What is a Node.js File?

Initiate the Node.js File

Start your command line interface, write node myfirst.js.

The Built-in HTTP Module

use the require() method.

Node.js as a Web Server

Use the createServer() method to create an HTTP server.