API Reference
Rockets Core API
nestjs-role
README

Rockets NestJS Role

A module for managing a basic Role entity, including controller with full CRUD, DTOs, sample data factory and seeder.

Project

NPM Latest (opens in a new tab) NPM Downloads (opens in a new tab) GH Last Commit (opens in a new tab) GH Contrib (opens in a new tab) NestJS Dep (opens in a new tab)

Installation

yarn add @concepta/nestjs-role

Usage

// ...
import { TypeOrmExtModule } from '@concepta/nestjs-typeorm-ext';
import { RoleModule } from '@concepta/nestjs-user';
import { CrudModule } from '@concepta/nestjs-crud';
 
@Module({
  imports: [
    TypeOrmExtModule.register({
      type: 'postgres',
      url: 'postgres://user:pass@localhost:5432/postgres',
    }),
    CrudModule.register(),
    RoleModule.register(),
  ],
})
export class AppModule {}

Configuration

Seeding

Configurations specific to (optional) database seeding.

ENV

Configurations available via environment.

VariableTypeDefault
ORG_MODULE_SEEDER_AMOUNT<number>50number of additional users to create