diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..6d077f1 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,9 @@ +import { NestFactory } from '@nestjs/core'; +import { AppModule } from './app.module'; + +async function bootstrap() { + const app = await NestFactory.create(AppModule); + await app.listen(process.env.PORT ?? 3000); + console.log(`sonar-test-nest3 listening on :${process.env.PORT ?? 3000}`); +} +bootstrap();