tornado-pool-relayer/src/main.ts

19 lines
513 B
TypeScript
Raw Permalink Normal View History

2021-07-13 19:06:36 +02:00
import { NestFactory } from '@nestjs/core';
import { ConfigService } from '@nestjs/config';
import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module';
async function bootstrap() {
2021-07-14 15:56:28 +02:00
try {
const app = await NestFactory.create<NestExpressApplication>(AppModule, { cors: true });
const configService = app.get(ConfigService);
await app.listen(configService.get('base.port'));
2021-07-14 15:56:28 +02:00
} catch (err) {
console.log('err', err.message);
2021-07-14 15:56:28 +02:00
}
2021-07-13 19:06:36 +02:00
}
bootstrap();