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