Scaffold Docker-only Node 24 + TypeScript EJS web backend

This commit is contained in:
2026-06-14 11:45:30 +02:00
commit 4eed701419
25 changed files with 2443 additions and 0 deletions

16
views/404.ejs Normal file
View File

@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><%= title %></title>
<link rel="stylesheet" href="/public/css/style.css" />
</head>
<body>
<main>
<h1>404</h1>
<p>That page does not exist.</p>
<p><a href="/">Back home</a></p>
</main>
</body>
</html>

20
views/index.ejs Normal file
View File

@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><%= title %></title>
<link rel="stylesheet" href="/public/css/style.css" />
<link rel="icon" href="/public/favicon.svg" />
</head>
<body>
<%- include("partials/header", { title }) %>
<main>
<h1>Welcome to <%= title %></h1>
<p>A plain, server-rendered page. Edit <code>views/index.ejs</code> to change it.</p>
</main>
<footer>
<p>Served with Node.js + EJS.</p>
</footer>
</body>
</html>

View File

@@ -0,0 +1,6 @@
<header class="site-header">
<a class="brand" href="/"><%= title %></a>
<nav>
<a href="/">Home</a>
</nav>
</header>