What problem does it solve?
This catalog consolidates Express.js and MongoDB/Mongoose best practices and anti-patterns to guide developers when writing, reviewing, or refactoring API code. It helps enforce consistent architecture, error handling, security, and maintainable code organization across controllers, routes, and models.
Core Features & Use Cases
- Comprehensive guidelines for route design, controller responsibilities, middleware usage, error handling, validation, security hardening, and MongoDB model patterns.
- A reference for code reviews and refactors, with concrete patterns and anti-patterns; includes examples.md for practical illustrations and hands-on guidance.
- Use cases include auditing existing projects, onboarding new team members, instituting architecture standards in new work, and integrating checks into CI pipelines.
Quick Start
Review an existing Express project against the catalog and apply the recommended patterns to refactor routes, controllers, and models.