import { NestFactory } from '@nestjs/core'; import * as dotenv from 'dotenv'; dotenv.config(); import { AppModule } from './app.module'; (async () => { const app = await NestFactory.create(AppModule); await app.listen(3000); })();