feat(auth): added in the intital setup auth

This commit is contained in:
2025-12-30 08:04:10 -06:00
parent 9b5a75300a
commit ff2cd7e9f8
18 changed files with 2208 additions and 15 deletions

22
backend/server.ts Normal file
View File

@@ -0,0 +1,22 @@
import os from "node:os";
import createApp from "./app.js";
import { createLogger } from "./src/logger/logger.controller.js";
import { connectProdSql } from "./src/prodSql/prodSqlConnection.controller.js";
const port = Number(process.env.PORT);
const start = async () => {
const log = createLogger({ module: "system", subModule: "main start" });
connectProdSql();
const { app, baseUrl } = await createApp();
app.listen(port, async () => {
log.info(
`Listening on http://${os.hostname()}:${port}${baseUrl}, logging in ${process.env.LOG_LEVEL}`,
);
});
};
start();