0.0.1 • Published 9 months ago

@byal-boilerplate/templates v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Templates

This plugin have the templates generators for all projects.

Generators

This library provides some generators to create new application. To use this generator run nx g @byal-boilerplate/templates:application and follow the instructions.

Application

This generator creates a new nest api application.

Event Based Resource

This generator creates a new event based resource.

Remember to add in the main app.module.ts the import of MikroORMModule and EventEmitterModule like:

import { MikroOrmModule } from '@mikro-orm/nestjs';
import config from '../../mikro-orm.config';
import { EventEmitterModule } from '@byal-boilerplate/event-emitter';
import { env } from '../config/env';

@Module({
  imports: [
    EventEmitterModule.forRoot({ queuePrefix: env.APPLICATION_SLUG_NAME }),
    MikroOrmModule.forRoot({
      ...config,
      autoLoadEntities: true,
    }),
  ],
  controllers: [],
  providers: [],
})
0.0.1

9 months ago