Docs
/
Node Express
Chapter 20
20 — Project Structure & Deployment
Core Concepts
- Feature-based structure — organize by domain, not by type
- Environment config —
.env, process.env, validation - Docker — containerize the app for consistent deployments
- PM2 — process manager (clustering, monitoring, auto-restart)
- Health checks — readiness and liveness probes
- Graceful shutdown — drain connections before exiting