aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-05-13 20:21:48 +0200
committerMinteck <contact@minteck.org>2022-05-13 20:21:48 +0200
commitfdb02383dda84f49471d341821fc3e2607754b85 (patch)
tree58ba8016128f3a0fe66b22793919c4ffc63b1b8c /index.js
parentfb8bc8472b1f14faf2c9dc2f2d4c0bcbf8983b38 (diff)
downloadvaportrail-fdb02383dda84f49471d341821fc3e2607754b85.tar.gz
vaportrail-fdb02383dda84f49471d341821fc3e2607754b85.tar.bz2
vaportrail-fdb02383dda84f49471d341821fc3e2607754b85.zip
Testing Testing 1, 2, 3
Diffstat (limited to 'index.js')
-rw-r--r--index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..722ced3
--- /dev/null
+++ b/index.js
@@ -0,0 +1,18 @@
+// noinspection JSUnresolvedVariable,HttpUrlsUsage
+
+const express = require('express');
+const app = express();
+
+app.use(express.static('public'));
+app.set("view engine", "ejs");
+
+app.get('/', function (req, res) {
+ res.render("index");
+})
+
+const server = app.listen(8099, function () {
+ let host = server.address().address
+ let port = server.address().port
+
+ console.log("Example app listening at http://%s:%s", host, port)
+}) \ No newline at end of file