nestjs-api
Installation
SKILL.md
NestJS API Development
Overview
NestJS is a progressive Node.js framework for building scalable, enterprise-grade applications using TypeScript. This skill should be invoked when creating enterprise Node.js APIs, microservices, or backend applications that require strong architecture, dependency injection, and modular organization.
Core Principles
- Modular Architecture: Organize code into modules that encapsulate related functionality
- Dependency Injection: Leverage NestJS's built-in DI container for loose coupling
- Decorator-Based: Use decorators for routing, validation, and authentication
- TypeScript First: Benefit from full TypeScript support with static typing
Preparation Checklist
- Initialize NestJS project:
nest new project-name - Plan module structure (users, products, orders, etc.)
- Choose database integration (TypeORM, Prisma, Mongoose)
- Decide on validation approach (class-validator, built-in pipes)