feat(scaffold): add src/main.ts [skip ci]
This commit is contained in:
9
src/main.ts
Normal file
9
src/main.ts
Normal file
@@ -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();
|
||||||
Reference in New Issue
Block a user