feat: complete V1 phases 0-7
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import 'reflect-metadata';
|
||||
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
|
||||
import { AppModule } from '../app.module';
|
||||
import { BootstrapAdminService } from '../users/bootstrap-admin.service';
|
||||
|
||||
async function main(): Promise<void> {
|
||||
const app = await NestFactory.createApplicationContext(AppModule, { logger: false });
|
||||
try {
|
||||
const publicId = await app.get(BootstrapAdminService).createInitialAdmin();
|
||||
process.stdout.write(`Initial administrator created: ${publicId}\n`);
|
||||
} finally {
|
||||
await app.close();
|
||||
}
|
||||
}
|
||||
|
||||
void main();
|
||||
Reference in New Issue
Block a user