Something went wrong. Try again.
because I got bored of customising my CV for every job
Something went wrong. Try again.
434 B · 17 lines
TypeScript
123456789101112131415161718import { NestFactory } from "@nestjs/core";import { AppModule } from "../modules/app.module";import { SeedService } from "../modules/database/seed/seed.service";
async function bootstrap() { const app = await NestFactory.createApplicationContext(AppModule);
const seedService = app.get(SeedService); await seedService.seed();
await app.close(); process.exit(0);}
bootstrap().catch((error) => { process.exit(1);});