@dryv/nestjs-appv0.3.1
NestJS application shell with bootstrap, package and tooling around the generated AppModule.
dryv pack add @dryv/nestjs-appimport "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();