Integrates Keycloak for secure administrator authentication using Arctic. Introduces a full CMS dashboard for managing CV content, supporting multi-language editing for profile, experience, and education sections. Refactors application routes for modularity and adds initial unit tests for database queries. Also includes minor UI/UX refinements, animation setup, and local Keycloak docker-compose configuration. Fixes: - Corrected KeyCloak import. - Restored missing getEducation function. - Ensured proper HTTP redirects. - Fixed PKCE code verifier length.
14 lines
357 B
TypeScript
14 lines
357 B
TypeScript
import { Elysia } from "elysia";
|
|
import { html } from "@elysiajs/html";
|
|
import { adminRoutes } from "./routes/admin";
|
|
import { publicRoutes } from "./routes/public";
|
|
|
|
const app = new Elysia()
|
|
.use(html())
|
|
.use(adminRoutes)
|
|
.use(publicRoutes)
|
|
.listen(3000);
|
|
|
|
console.log(
|
|
`Elysia is running at http://${app.server?.hostname}:${app.server?.port}`
|
|
); |