@concepta/nestjs-org
v4.0.0-alpha.42
Published
Rockets NestJS User
Downloads
107
Readme
Rockets NestJS Org
A module for managing a basic Org entity, including controller with full CRUD, DTOs, sample data factory and seeder.
Project
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 |