Advanced Node.js Process Management with PM2

Matthew Brown Articles, Development Technologies & Tools, JavaScript, Node.js, Tutorial 18 Comments

If you’ve worked on any front end applications recently, you have likely had some contact with a Node/Express application. What you may not be familiar with is how these applications are managed in production.

I recently had a project where I needed to set up a Node application on an AWS server. I needed a tool to solve the technical challenges of managing the Node processes and deploying the application in a very efficient manner.

I chose PM2, which is a handy process management tool for running Node.js applications in production environments. PM2 provides a simple command line interface that makes it easy to get started. This powerful Node module has tools for managing application processes, logging, and more.

In this article, I provide an introduction to PM2, showing why it is such a valuable tool for managing Node.js applications. By way of a reference example application, we show the basic features and commands for using PM2 and give examples of generating configuration files for both running and deploying applications.

Seriate: The Glue Between SQL Server and Node.js

Chris Berry .NET, Articles, Development Technologies & Tools, JavaScript, Node.js 8 Comments

Attention: This article was published over 10 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.An example Node.js application which connects to a SQL server and serves up data via HTTP endpoints. Before leaving my last client, I was …

NPM

Automate your front-end development environment with npm

Joseph Post Articles, Development Technologies & Tools, JavaScript, Tutorial Leave a Comment

Attention: This article was published over 10 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.For JavaScript development, there are more build tools than you know what to do with.ย The non-verbal utterance category contains the two most popular ones, …

Node.js

A Gentle Introduction to Node.js

Jinal Patel Articles, Development Technologies & Tools, JavaScript, Node.js Leave a Comment

Attention: This article was published over 10 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.Recently at work, I sought to familiarize myself with Node.js. Naturally, I started searching the pool of applications in Keyholeโ€™s GitHub repository. This was …

Rethinkdb

Real-Time Applications With RethinkDB

John Hoestje Articles, Databases, Development Technologies & Tools, JavaScript, Microservices, Node.js 1 Comment

Attention: This article was published over 10 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.In the last several years, there have been new requirements and expectations placed on enterprise applications that have dramatically increased application code complexity. Users …