Practical setup, management and troubleshooting guides for Node.js & Express.

Articles

Building and deploying a TypeScript backend

Many TypeScript backends compile to JavaScript before production startup. The server must...

Deploying repeatable Node dependencies with npm ci

A reviewed lock file lets deployment install the dependency tree selected for the application....

Diagnosing an Express upload size failure

An upload can fail at the proxy, request parser, upload middleware or storage layer. Identify...

Handling Node process restarts and graceful shutdown

A production application should stop accepting new work and finish or safely hand off current...

Investigating a Node app that works locally but fails on hosting

A local success can depend on files, environment values or tools that are absent on the server....

Running Express behind a trusted reverse proxy

Express can use forwarded information to understand the original client and HTTPS connection....

Selecting a supported Node.js runtime for an existing app

Choose a Node.js version that is supported both by the application and by its dependencies. A...

Starting a Node app with the assigned production port

A hosting platform may assign the internal listening port or socket used by its reverse proxy....

Storing Express sessions outside process memory

A production Express session store should survive the application behavior it is expected to...

Troubleshooting a Node native dependency build

Some Node packages include native components compiled for a particular runtime and operating...

Using WebSocket connections on eligible hosting

WebSockets keep a connection open for two-way communication. They require support from the...