13 lines
336 B
TypeScript
13 lines
336 B
TypeScript
import 'reflect-metadata';
|
|
import { NestFactory } from '@nestjs/core';
|
|
import { AppModule } from './app.module';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
const port = process.env['API_PORT'] ?? 3001;
|
|
await app.listen(port);
|
|
console.log(`TOWER API running on port ${port}`);
|
|
}
|
|
|
|
bootstrap();
|