summaryrefslogtreecommitdiff
path: root/src/main.ts
blob: 90ecef4efe0635b9be0d75f61672441e24cf108b (plain)
1
2
3
4
5
6
7
8
9
10
11
import { config } from 'dotenv';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';

config();

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  await app.listen(process.env.PORT);
}
bootstrap();