Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 3.15 KB

File metadata and controls

79 lines (50 loc) · 3.15 KB

better-nodejs-project

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

Husky - Git hooks

For consistent work to avoid mistakes before committing

Example

See the source code of this repository

Links

Other helpful links