Create or Import Module
You can either create a module by creating a folder and adding your classes following the NestJS conventions, or you can import a compatible module directly into the src/modules/ folder.
Prerequisites
Example Usage
Component Explanation
import { Module } from '@nestjs/common';
import { MyCustomService } from './services/my-custom.service';
import { MyCustomController } from './controllers/my-custom.controller';
import { DynamicModule } from '../../common/decorators/dynamic.module.decorator';
@DynamicModule({})
@Module({
controllers: [MyCustomController],
providers: [MyCustomService],
})
export class MyCustomModule {}Last updated