feat: massive front-end overhaul and initial github release

This commit is contained in:
Simeon Radivoev 2026-02-08 21:18:10 +02:00
parent a2b40e38bf
commit d5a0e70580
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
303 changed files with 19840 additions and 676 deletions

22
src/bun/server.ts Normal file
View file

@ -0,0 +1,22 @@
import { SERVER_PORT } from "../shared/constants";
import path from 'node:path';
import { host } from "./utils";
export function RunBunServer ()
{
console.log("Launching Server on port ", SERVER_PORT);
return Bun.serve({
port: SERVER_PORT,
hostname: host,
routes: {
"/": Bun.file("./dist/index.html"),
// Serve a file by lazily loading it into memory
"/favicon.ico": Bun.file("./dist/favicon.ico"),
},
fetch: async (req) =>
{
const url = new URL(req.url);
return new Response(Bun.file(`./${path.join('dist', url.pathname)}`));
},
});
}