2023-03-15 16:41:16 +00:00
|
|
|
import { ConfigService } from '@nestjs/config';
|
2022-12-23 15:36:23 +00:00
|
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
import { AppModule } from './app.module';
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2023-03-15 16:41:16 +00:00
|
|
|
const configService: ConfigService = app.get(ConfigService);
|
|
|
|
await app.listen(configService.get<number>('SERVICE_PORT'));
|
2022-12-23 15:36:23 +00:00
|
|
|
}
|
|
|
|
bootstrap();
|