Landingpage/app.js

14 lines
293 B
JavaScript
Raw Permalink Normal View History

2019-09-05 17:38:34 +00:00
const express = require('express'),
path = require('path');
const app = express();
const PORT = 8080;
app.use(express.static('public'));
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname + 'public/index.html'));
});
app.listen(PORT);
console.log(`Running on: ${PORT}`);