Skip to main content
WebsiteintermediateFree

Node.js Best Practices

by Yoni Goldberg · GitHub

Answers the question the official docs deliberately do not: how to structure, operate and secure a real Node service. Over 100 curated Node.js practices covering project architecture, error handling, testing, production operations, security and Docker. Each item states the rule, explains the reasoning, and links code examples and citations. Updated periodically with community review.

Visit resource

More resources on Node.js

YouTubeFree

Curso de Node.js desde cero

Seven recorded live classes, about two hours each, that start with Node.js core modules, CommonJS and ES modules, then build a REST API with Express. Later classes cover CORS, MVC structure, deployment, MySQL, Socket.io real-time chat, and JWT authentication. Taught in Spanish.

BookPaid

Node.js: Das umfassende Handbuch

Comprehensive German handbook, 5th edition updated for Node.js 24: modules, npm and Yarn, asynchronous programming, databases, GraphQL, Nest.js, testing, performance, scaling and deployment. After it a learner can build, test and run production Node.js back ends.

BookPaid

実践Node.js入門 ―基礎・開発・運用

Japanese-original Node.js textbook covering modules (CommonJS and ESM), npm, callbacks through async/await and streams, a tested CLI tool, an Express REST API with database, Docker and clustering, React integration, and long-term maintenance and performance tuning.

BookFree

Node.js — Apprendre par la pratique

Practice-driven French book covering Node.js history and governance, installation, core modules (fs, http, streams), npm, deployment, and building a web app, a CLI tool and a front-end build. Full text is free online under CC BY-NC-SA; written for Node v10.

YouTubeFree

Everything You Need to Know About the Node.js Event Loop

Keynote by the author of libuv, the C library underneath Node.js, walking through each event loop phase, timers, poll and check ordering, and the thread pool. Explains why observed callback ordering sometimes surprises.

WebsiteFree

Express Web Framework (Node.js/JavaScript) - MDN

MDN's seven-part Express tutorial builds a Local Library site: environment setup, project skeleton, Mongoose models, routes and controllers, template rendering, form handling with validation, and production deployment. Self-contained, with no framework prerequisites beyond JavaScript.

See all Node.js resources →