mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
17 lines
377 B
JavaScript
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}`);
|
||
|
});
|