NodeJS is a Server side platform built on Javascript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009 and the final version is v0.10.36.
If you want to set up node.js environment on your personal computer, you must have 2 software on your computer.
Node.js uses the Module architecture to simplify the creation of complex applications. The module is like libraries in C, C #, Java ... Each module contains a set of functional
Before creating the actual Hello world application in Node.js, see the main parts of the Node.js program. A Node.js program includes the following important sections.
REPL is an acronym for Read Eval Print Loop (understandably: Reading - Evaluating - Printing - Repeating) and it represents the computer environment like the console screen in the
Provides utilities to install Node.js packages, version management and dependency management of packages in Node.js.
Callback has the same asynchronous property for a function. A callback function is called when completing a specific task. All Node APIs are written in the way of callback
Node.js is a single thread application, but it supports concurrent processing through event definitions and callbacks. As all Node.js APIs are asynchronous and single threaded, it
Many objects in Node.js generate events, for example net.Server generates an event every time a peer connection to it, or fs.readStream generates an event when a file is opened.
Net Javascript is Unicode encoded conveniently but not really good with binary data. When working with TCP streams or file systems, it is necessary to handle octal data streams.
Streams are objects that allow you to read data from one source and record data to a destination. In Node.js, there are 4 types of Streams.
In the previous chapters, you found that you used a lot of require (fs) syntax. So what is the syntax to do? This is the syntax to declare fs Module to deploy File I / O
The Global Concept (Global) means everything has access to it. In Node.js, too, global objects are available for all modules. We do not need to declare or import them by the
The Node.js Library Module provides many Utility Modules that help you a lot while developing applications on Node.js. The following table lists and describes these Utility
Web Server is a software application that can handle HTTP requests sent by HTTP Client (for example, a web browser) and return a web page in response to the Client. Web Server
Express is a small framework and utility for building web applications, providing a huge amount of powerful features for developing web and mobile applications. It is easy to
REST stands for Representational State Tranfer. REST is a web standard based on basic architectures using HTTP protocol. It processes resources, where each component is a
The req object represents the HTTP Request and has properties for the request query string, parameters, body, HTTP Header ...
The object res represents the HTTP Response that the Express application sends when receiving an HTTP Request.