From: Carl Worth Date: Wed, 7 Dec 2022 00:36:53 +0000 (-0800) Subject: Add a simple express server X-Git-Url: https://git.cworth.org/git?p=zombocom-ai;a=commitdiff_plain;h=e0b2d89a75bbe68baf6a0d2eb05e3bb7e2e7c242 Add a simple express server And an HTML file for it to serve, (copied in from the zombocom-static repository I made earlier today). --- 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}`); +}); +