2025-10-17 07:20:42 -06:00
|
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
|
import { AppModule } from './app.module';
|
2025-10-20 12:14:16 -06:00
|
|
|
import { ValidationPipe } from '@nestjs/common';
|
2025-10-17 07:20:42 -06:00
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2025-10-20 12:14:16 -06:00
|
|
|
app.enableCors({});
|
|
|
|
|
app.useGlobalPipes(new ValidationPipe());
|
2025-10-17 07:20:42 -06:00
|
|
|
await app.listen(process.env.PORT ?? 3000);
|
2025-10-20 12:14:16 -06:00
|
|
|
|
2025-10-22 18:39:19 -06:00
|
|
|
console.log(`successfully connected at the port ${process.env.PORT ?? 3000}`);
|
2025-10-17 07:20:42 -06:00
|
|
|
}
|
|
|
|
|
bootstrap();
|