File size: 320 Bytes
88f437e
c114c72
d9eec61
88f437e
 
c114c72
d9eec61
88f437e
 
 
1
2
3
4
5
6
7
8
9
10
11
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module.js';
import { ValidationPipe } from '@nestjs/common';

async function bootstrap() {
  const app = await NestFactory.create(AppModule, { cors: true });
  app.useGlobalPipes(new ValidationPipe());
  await app.listen(3000);
}
bootstrap();