Node JS info

require

Use require directive to load Node.js modules. Stores the returned HTTP instance in a variable

Create server

A server which will listen to clinet's request similar to Apache HTTP Server

Read request and return responses

The server will read the HTTP request made by the client and return the response

Express framework

You don't want to reinvent the wheel when it comes to POST requests, rendering views etc.

The Express framework includes routing, configuration, a temolate engine, POST parsing and much more.

Node.js is a single-threaded application, but can support concurrency via events and callbacks.

Event-driven programming

Node.js uses events heavily, which is one of the reasings why Node.js is relatively fast. When an event is detected a callback function is triggered. It uses the observer pattern.