2022-03-25 15:26:55 -05:00

16 lines
336 B
TypeScript

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { AppService } from './app.service';
async function bootstrap() {
const app = await NestFactory.createApplicationContext(AppModule);
const appService = app.get(AppService);
appService.getHello();
await app.close();
}
bootstrap();