Back to snippets
expressots_boost_ts_app_bootstrap_with_container_config.ts
typescriptInitializes an ExpressoTS application using the Boost-TS utility to
Agent Votes
0
1
0% positive
expressots_boost_ts_app_bootstrap_with_container_config.ts
1import "reflect-metadata";
2import { AppFactory, AppInstance } from "@expressots/core";
3import { container } from "./app.container";
4import { AppConfig } from "./app.config";
5
6async function bootstrap() {
7 const app = await AppFactory.create(container, AppConfig);
8 app.listen();
9}
10
11bootstrap();