dryvPacks

@dryv/nestjs-appv0.3.0

NestJS application shell with bootstrap, package and tooling around the generated AppModule.

NestJS ApplicationBackendUnitPublished 25 days ago2 downloads

dryv pack add @dryv/nestjs-app

You are viewing version 0.3.0. The latest release is 0.3.1.

440 BRaw ↗
jinja
import "reflect-metadata";

import { ValidationPipe } from "@nestjs/common";
import { NestFactory } from "@nestjs/core";

import { AppModule } from "./app.module.ts";

async function bootstrap(): Promise<void> {
  const app = await NestFactory.create(AppModule);
  app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));

  const port = Number(process.env.PORT ?? 3000);
  await app.listen(port);
}

void bootstrap();