13 lines
332 B
TypeScript
13 lines
332 B
TypeScript
import "reflect-metadata";
|
|
import { NestFactory } from "@nestjs/core";
|
|
import { AppModule } from "./app.module";
|
|
import { loadSettings } from "./config";
|
|
|
|
async function bootstrap() {
|
|
const settings = loadSettings();
|
|
const app = await NestFactory.create(AppModule);
|
|
await app.listen(settings.port, "0.0.0.0");
|
|
}
|
|
|
|
bootstrap();
|