From e0b2d89a75bbe68baf6a0d2eb05e3bb7e2e7c242 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 6 Dec 2022 16:36:53 -0800 Subject: [PATCH] Add a simple express server And an HTML file for it to serve, (copied in from the zombocom-static repository I made earlier today). --- index.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.js | 14 ++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 index.html create mode 100644 index.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..d82fb66 --- /dev/null +++ b/index.html @@ -0,0 +1,55 @@ + + + + + + ZOMBO + + + + + + + +
+

+
+

+ +

+ Zombocom +

+
+ +
+
+

+ +

+
+
+ + + + + diff --git a/index.js b/index.js new file mode 100644 index 0000000..1903531 --- /dev/null +++ b/index.js @@ -0,0 +1,14 @@ +const express = require('express'); +const app = express(); +const http = require('http'); +const server = http.createServer(app); +const port = 2122; + +app.get('/', (req, res) => { + res.sendFile(__dirname + '/index.html'); +}); + +server.listen(port, () => { + console.log(`listening on *:${port}`); +}); + -- 2.43.0