A module for managing a basic Otp entity, including controller with full CRUD, DTOs, sample data factory and seeder.
yarn add @concepta/nestjs-otp
// ...
import { TypeOrmExtModule } from '@concepta/nestjs-typeorm-ext';
import { OtpModule } from '@concepta/nestjs-user';
import { CrudModule } from '@concepta/nestjs-crud';
@Module({
imports: [
TypeOrmExtModule.forRoot({
type: 'postgres',
url: 'postgres://user:pass@localhost:5432/postgres',
}),
CrudModule.forRoot({}),
OtpModule.forRoot({}),
],
})
export class AppModule {}
Configurations specific to (optional) database seeding.
Configurations available via environment.
Variable | Type | Default | |
---|---|---|---|
ORG_MODULE_SEEDER_AMOUNT |
<number> |
50 |
number of additional users to create |