Node.js
Node.js is the runtime that powers Aliz's backend services and tooling. This page collects learning resources from first steps to production best practices. For JavaScript language fundamentals, see JavaScript & TypeScript.
Where to start
New to Node? The official Learn section is a great starting point. Pair it with the Node.js Roadmap for a structured learning path.
Official Resourcesโ
- Node.js Learn โ The official learning path โ covers getting started, debugging, and core APIs.
- Node.js API Reference โ The complete built-in module reference. Bookmark it.
- Node.js Roadmap โ Visual roadmap covering everything from basic modules to streams, worker threads, and deployment.
Core Conceptsโ
- The Node.js Event Loop โ Understanding the event loop is essential for writing performant Node.js code.
- Node.js Best Practices โ 102 best practices covering architecture, error handling, code style, testing, security, performance, and Docker. The most comprehensive Node.js guide on GitHub (100k+ stars).
Package Managementโ
- npm Documentation โ Official npm docs: dependency management, lockfiles, workspaces, scripts, and publishing.
Aliz projects use npm as the default package manager. pnpm is the only endorsed alternative when there is a concrete reason such as large monorepo performance or strict dependency isolation.
Testingโ
- JavaScript Testing Best Practices โ 50+ testing best practices covering unit, integration, and E2E strategies. By the same author as Node.js Best Practices.
For Aliz's recommended testing tools, see Tech Stack โ Vitest and Tech Stack โ Playwright.
Securityโ
- Node.js Best Practices โ Security โ 25 security best practices including input validation, headers, dependency scanning, and rate limiting.
- Snyk Vulnerability Database โ Search for known vulnerabilities in npm packages.
Production & Dockerโ
- Node.js Best Practices โ Docker โ 15 Docker best practices: multi-stage builds, graceful shutdown, caching, and secrets management.
Related Docsโ
- Web Security Essentials โ XSS, CSRF, CSP, and security headers
- npm Supply Chain Attacks โ dependency confusion, typosquatting, and mitigation strategies
- npm โ Aliz's default package manager: setup, lockfiles, and workspaces