better-nodejs-project
March 15, 2026 ยท View on GitHub
Ways for a better Node.js backend project
ECMAScript Modules (ESM)
For modern, future-proof Node.js development, using ESM instead of CommonJS can provide benefits such as Top-level await, clearer handling of Circular dependency, and more
TypeScript
For preventing errors in your code with static analysis
NestJS Framework
For extensible architectural structures and production-ready functionality
TypeScript ESLint
For correcting bad code and writing consistent code
It is recommended to apply the known extended presets in addition to the basic rules
The following rules are available in flat config in eslint v9
Conventional Commits
For consistent commit message
Semantic Versioning
For automatic versioning and changelog based on consistent commit messages
- Automatically Version with Conventional Commits
- nx release version
- nx release changelog
- If you publish the project as a package, use nx release publish.
- Manage Releases
Husky - Git hooks
For consistent work to avoid mistakes before committing
Example
See the source code of this repository
Links
Other helpful links