Initial project structure

This commit is contained in:
2026-07-20 16:44:23 +02:00
commit c19fde4126
27 changed files with 4679 additions and 0 deletions
+105
View File
@@ -0,0 +1,105 @@
import { Rabbit } from "./rabbit";
import { WrapperManager } from "./wrapperManager";
import { WrapperRegistry } from "./wrapperRegistry";
import { ServerRegistry } from "./serverRegistry";
import { ServerManager } from "./serverManager";
import { PortManager } from "./portManager";
import { ServerStatusManager } from "./serverStatusManager";
import { ServerLifecycle } from "./serverLifecycle";
const wrapperRegistry =
new WrapperRegistry();
const serverRegistry =
new ServerRegistry();
const portManager =
new PortManager();
async function main(){
const rabbit =
new Rabbit();
await rabbit.connect();
const wrapperManager =
new WrapperManager(
rabbit,
wrapperRegistry,
serverRegistry
);
await wrapperManager.start();
const serverManager =
new ServerManager(
rabbit,
wrapperRegistry,
serverRegistry,
portManager
);
const lifecycle =
new ServerLifecycle(
serverRegistry,
serverManager
);
lifecycle.start();
const statusManager =
new ServerStatusManager(
rabbit,
serverRegistry
);
await statusManager.start();
console.log(
"Manager gestartet"
);
}
main();