Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/nperez0111/bookhive. Track your books, share your shelves, see what others are reading bookhive.buzz
atproto bluesky books bookshelf goodreads management-system
Something went wrong. Try again.
123456789101112131415161718192021222324import { createApp } from "./app";import { createAppDeps } from "./context";import { destroyLogger } from "./logger/index.ts";
const deps = await createAppDeps();const startTime = new Date().toISOString();
const app = createApp({ startTime, deps,});
// Ensure worker threads are terminated on shutdown so the process can exit cleanly.function shutdown() { void deps.ingester.destroy(); deps.stopEnrichmentDrain(); destroyLogger(); process.exit(0);}process.on("SIGINT", shutdown);process.on("SIGTERM", shutdown);
export default app;