Initial implementation

This commit is contained in:
2026-07-19 21:28:54 +00:00
commit 287ba99e84
18 changed files with 1324 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { createApp } from "./app.js";
import { loadConfig } from "./config.js";
const config = loadConfig();
const app = createApp(config);
const server = app.listen(config.port, config.host, () => {
console.log(`suwayomi-rss listening on http://${config.host}:${config.port}`);
});
for (const signal of ["SIGINT", "SIGTERM"]) {
process.on(signal, () => {
server.close((error) => {
if (error) {
console.error(error);
process.exitCode = 1;
}
});
});
}