addition of new dashboard

This commit is contained in:
2026-08-20 15:08:32 +00:00
parent 0622018d95
commit bf59249ed7
161 changed files with 13170 additions and 119 deletions

27
backend/index.js Normal file
View File

@@ -0,0 +1,27 @@
import express from "express";
import { init, close, migrate, populateAgreements } from "./db/index.js";
import { loadConfig } from "./common/config.js";
import { loadApps } from "./apps.js";
import { initHTTP } from "./http/index.js";
import { migrateLegacyApiKeys } from "./modules/core/apiKey.js";
const app = express();
app.set("env", "development");
app.use(express.static("./public"));
async function main() {
await loadConfig();
await init();
await migrate();
await populateAgreements();
await loadApps();
await initHTTP(app);
// After initHTTP so the auth rows (incl. the single/Docker user's) exist.
await migrateLegacyApiKeys();
const server = await app.listen(9090, () => {
console.log(`Listening on 0.0.0.0:9090`);
});
server.on("beforeExit", close);
}
main();