import { NestFactory } from '@nestjs/core' ; import { NestExpressApplication } from '@nestjs/platform-express' ; import { AppModule } from './modules/app/app.module' ; import { bootstrapApp } from './bootstrap' ; async function bootstrap ( ) { const app = await NestFactory . create < NestExpressApplication > ( AppModule ) ; await bootstrapApp ( app ) ; await app . listen ( process . env . PORT || 3000 ) ; } bootstrap ( ) ;