Node.js | ELbuild
nodejs

Node.js

Node.js is an open source and multiplatform javascript runtime environment that allows the use of the javascript language for the realisation of server-side components.

Creation of scalable network applications

An asynchronous approach

The main peculiarity of Node.js is represented by the fact that it is driven by asynchronous events, a feature that makes it suitable for creating scalable network applications.

When do we use Node.js?

Creating a backend in Node.js

Java EE is usually our first choice for the development of server-side components. However, in the preliminary phase when we analyse the characteristics of a project, we can decide, together with the client, to insert Node.js within the technology stack.

Web applications with server-side rendering

Using Node.js with Angular Universal

In all cases in which we choose Angular Universal technology for the implementation of web services, it is necessary to combine this technology with Node.js to perform server-side processing of web pages. In these cases, we use express to create a simple web server that processes the typescript code and creates the static web page to be returned to the browser, and we choose PM2 for the deployment and management of SSR applications.