const express = require('express') const app = express() const port = 8080 app.use(express.json()); app.use(express.static('public')) app.get('/', (req, res) => { res.sendFile('login.html', { root: './public' }) }) app.listen(port, () => { console.log(`App listening on port http://127.0.0.1:${port}`) })