Run program on init
问题 I would create a program (script) that launches actions when it's get run, so I'm not using routes in this program I'm using NestJS framework (requirement). Actually I'm trying to write my code in main.ts file and importing a service with my methods . import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import {AppService} from './app.service' import { TreeChildren } from 'typeorm'; async function bootstrap() { const app = await NestFactory.create(AppModule);