Stirling-PDF/index.js
2023-10-16 23:11:33 +02:00

17 lines
377 B
JavaScript

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}`);
});