What problem does it solve?
This Skill unit provides comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications using modern frameworks and best practices.
Core Features & Use Cases
- Framework Guidance: Offers setup and usage instructions for Express.js and Fastify.
- Architectural Patterns: Introduces layered architecture and dependency injection.
- Middleware Patterns: Includes authentication, validation, rate limiting, and logging middleware.
- Error Handling: Demonstrates custom error classes and a global error handler.
- Database Patterns: Covers PostgreSQL and MongoDB integration with connection pooling and Mongoose.
- Authentication & Authorization: Explains JWT authentication and refresh tokens.
- Caching Strategies: Introduces Redis for caching and a cache decorator.
- API Response Format: Defines a structured API response format.
- Best Practices: Lists 15 best practices for Node.js backend development.
- Testing Patterns: References external testing guidance.
- Resources: Provides links to additional resources for Node.js development.
Quick Start
Use the nodejs-backend-patterns skill to set up a new Express.js server with basic security and logging.