Initial server-stack setup

This commit is contained in:
JamBox
2026-02-15 20:04:18 -08:00
commit 7f14c826f2
10 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
FROM node:20-alpine
WORKDIR /app
COPY package.json server.js ./
RUN npm install
EXPOSE 8080
CMD ["node", "server.js"]

View File

@@ -0,0 +1,8 @@
{
"name": "jamesvanboxtel",
"version": "1.0.0",
"private": true,
"dependencies": {
"express": "^4.21.0"
}
}

View File

@@ -0,0 +1,22 @@
const express = require("express");
const app = express();
app.get("/", (req, res) => {
res.send(`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jamesvanboxtel.com</title>
<style>
body { margin: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; font-family: system-ui, sans-serif; background: #fafafa; color: #333; }
h1 { font-size: 3rem; font-weight: 300; }
</style>
</head>
<body>
<h1>jamesvanboxtel.com</h1>
</body>
</html>`);
});
app.listen(8080, () => console.log("jamesvanboxtel running on :8080"));