2025-09-04 20:17:04 -04:00
|
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
|
import { AppModule } from './app.module';
|
2025-09-04 21:04:15 -04:00
|
|
|
import { ValidationPipe } from '@nestjs/common';
|
2025-09-04 20:17:04 -04:00
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2025-09-04 21:04:15 -04:00
|
|
|
app.useGlobalPipes(new ValidationPipe());
|
|
|
|
|
app.enableCors();
|
2025-09-04 20:17:04 -04:00
|
|
|
await app.listen(process.env.PORT ?? 3000);
|
|
|
|
|
}
|
|
|
|
|
bootstrap();
|