MCPcopy
hub / github.com/nestjs/nest / bootstrap

Function bootstrap

sample/08-webpack/src/main.ts:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4declare const module: any;
5
6async function bootstrap() {
7 const app = await NestFactory.create(AppModule);
8 await app.listen(3000);
9 console.log(`Application is running on: ${await app.getUrl()}`);
10
11 if (module.hot) {
12 module.hot.accept();
13 module.hot.dispose(() => app.close());
14 }
15}
16bootstrap();

Callers 1

main.tsFile · 0.70

Calls 6

createMethod · 0.65
listenMethod · 0.65
logMethod · 0.65
getUrlMethod · 0.65
closeMethod · 0.65
disposeMethod · 0.45

Tested by

no test coverage detected