logger/src/main.ts

11 lines
356 B
TypeScript

import { ConfigService } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const configService: ConfigService = app.get(ConfigService);
await app.listen(configService.get<number>('SERVICE_PORT'));
}
bootstrap();