A simple website with Node – My first steps
This document explains the very basics on how to create a website with node JS. This tutorial will show you how to set a node project with Netbeans and will explain the basics of creating a web server with node.js Please feel free to leave any comment to improve this tutorial.
You can copy, redistribute, share, modify this content – even for commercial purposes – as long as the name of the author is respected. Thank you for your understanding.
Node – My First steps
What is node?
Event-driven: the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other programs/threads.
Non-blocking I/O model: an operation does not need to be completed in order for node to execute another other operation. Therefore node can run code asynchronously.
Blocking refers to operations that block further execution until that operation finishes. Non-blocking refers to code that doesn’t block execution even if an operation is not done yet.
Synchronous execution usually refers to code executing in sequence. Asynchronous execution refers to execution that doesn’t run in the sequence it appears in the code.