MVP - Scale Pages, Scale Content

This commit is contained in:
Felix Kaspar
2023-10-16 23:11:33 +02:00
commit 542d74b9cc
10 changed files with 569 additions and 0 deletions

17
index.js Normal file
View File

@@ -0,0 +1,17 @@
const express = require('express');
const app = express();
const path = require('path');
const PORT = 8080;
// Static Middleware
app.use(express.static(path.join(__dirname, 'public')))
app.get('/', function (req, res, next) {
res.render('home.ejs');
})
app.listen(PORT, function (err) {
if (err) console.log(err);
console.log(`http://localhost:${PORT}`);
});