2025-02-24 10:32:41 +05:30
|
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
|
import { AppModule } from './app.module';
|
2025-02-25 13:18:33 +05:30
|
|
|
import { ValidationPipe } from '@nestjs/common';
|
2025-02-24 10:32:41 +05:30
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2025-02-25 13:18:33 +05:30
|
|
|
app.useGlobalPipes(new ValidationPipe());
|
2025-02-24 10:32:41 +05:30
|
|
|
await app.listen(process.env.PORT ?? 3000);
|
|
|
|
|
}
|
|
|
|
|
bootstrap();
|