mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): add local repl console
Based on the REPL from NestJS 9
This commit is contained in:
parent
99cc06bbbc
commit
0a9956e1ae
3 changed files with 41 additions and 1 deletions
11
src/console.ts
Normal file
11
src/console.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { repl } from "@nestjs/core";
|
||||
import { AppModule } from "./app.module";
|
||||
import { otelSDK } from "./open-telemetry/sdk";
|
||||
|
||||
async function bootstrap() {
|
||||
await otelSDK.start();
|
||||
|
||||
// TODO: Disable scheduled tasks from SourcesModule when in repl mode
|
||||
await repl(AppModule);
|
||||
}
|
||||
bootstrap();
|
||||
Loading…
Add table
Add a link
Reference in a new issue