Files
anime_downloader/nest_api/anime-api/src/main.ts
2025-12-25 19:50:27 +09:00

15 lines
500 B
TypeScript

import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ConfigService } from '@nestjs/config';
// const port = process.env.NODE_SERVER_PORT;
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const configService = app.get(ConfigService);
const port = configService.get('NODE_SERVER_PORT');
await app.listen(port);
Logger.log(`Application listening on port ${port}`);
}
bootstrap();