MVP - Scale Pages, Scale Content
This commit is contained in:
17
index.js
Normal file
17
index.js
Normal 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}`);
|
||||
});
|
||||
Reference in New Issue
Block a user