14 lines
No EOL
293 B
JavaScript
14 lines
No EOL
293 B
JavaScript
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}`); |