nestjs-ddd
is a CLI tool designed to enhance the development of NestJS applications by automating the setup of Domain-Driven Design (DDD) module structures. This utility facilitates the creation of a standardized folder and file arrangement, adhering to DDD practices, which helps maintain a well-organized architecture across your projects.
- Automatic Scaffolding: Generates the directory and file structure for NestJS modules based on DDD principles.
- Customizable Templates: Provides and allows modification of templates for domains, DTOs, entities, mappers, repositories, controllers, services, and more.
- Development Efficiency: Accelerates the setup process for NestJS applications by offering a robust DDD framework.
This package should be installed globally to ensure it can be run from anywhere in your system:
npm install -g nestjs-ddd
Once installed, you can invoke the generator using the following command: Generate NestJS DDD module structure
Commands:
nestjs-ddd <command> [options] Generate NestJS DDD module structure
nestjs-ddd g <moduleName> Generate module structure based on module
nestjs-ddd new <projectName> Generate project default files
The provided templates based a nestjs-ddd-boilerplate.
This project is licensed under the MIT License.