INNER CODE UNIT · TypeScript

bootstrap

dzzzzzy/Nestjs-Learning · demo/rest-api/src/main.ts:5

async function bootstrap() {
    const app = await NestFactory.create(AppModule);  // 创建应用程序实例,此时所有被 AppModule 导入的其他模块的所有实例都会被加载

    await app.listen(3000);  // 使用3000端口监听应用程序
}

bootstrap();  // 启动应用程序 -> localhost:3000

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…