NestJS Snippets
NestJS snippets for Zed IDE.
Installation
- Clone this repo:
git clone https://github.com/ayberkgezer/nestjs-snippets.git- Go to Extensions menu in Zed IDE
- Click "Install Dev Extension"
- Select the folder you cloned
Available Snippets
Core Components
nestjs-bootstrap: Creates NestJS bootstrap codenestjs-controller: Creates NestJS Controller with CRUD operationsnestjs-service: Creates NestJS Service with CRUD operationsnestjs-module: Creates NestJS Modulenestjs-root-module: Creates NestJS Root Modulenestjs-entity: Creates NestJS Entity classnestjs-dto: Creates Data Transfer Objects (DTOs)
Request Pipeline Components
nestjs-middleware: Creates NestJS Middlewarenestjs-guard: Creates NestJS Guardnestjs-interceptor: Creates NestJS Interceptornestjs-pipe: Creates NestJS Pipenestjs-exception-filter: Creates NestJS Exception Filternestjs-decorator: Creates NestJS Decorator
Validation & Testing
nestjs-validation: Creates validation class using class-validatornestjs-test: Creates NestJS Test File
Database Integration
nestjs-typeorm-module: Creates TypeORM configuration with NestJSnestjs-mongoose-module: Creates Mongoose configuration with NestJS
Configuration
nestjs-config-module: Creates and configures ConfigModule
Integrations
nestjs-slash-command: Creates Discord slash command using Necord