nest-project-boilerplate
v2.0.5
Published
A schematics for generating boilerplate code with DDD architecture
Downloads
13
Readme
Getting Started
This repository is boilerplate for creating module for NestJS project with DDD (Domain Driven Design) architecture
Install
npm install -g nest-project-boilerplate
then
npm i -g @nest/cli
Run
For the module-boilerplate
run this :
nest generate --collection nest-project-boilerplate module-boilerplate ModuleName
It will generate the structure like this
├── module-name
│ ├── controllers
│ │ └── module-name.controller.ts
│ ├── dtos
│ │ ├── module-name-create.dto.ts
│ │ ├── module-name-read.dto.ts
│ │ ├── module-name-update.dto.ts
│ │ └── index.ts
│ ├── helpers
│ │ └── module-name.helper.ts
│ ├── mappers
│ │ ├── module-name.mapper.ts
│ ├── repositories
│ │ └── module-name.repository.ts
│ ├── interfaces
│ │ └── module-name.interface.ts
│ ├── services
│ │ └── module-name.service.ts
│ ├── module-name.module.ts
Credits
Author Refi Fauzan