const express = require('express'); | |
const app = express(); | |
const fs = require('fs'); | |
const path = require('path'); | |
app.get('/', (req, res) => { | |
res.sendFile(path.join(__dirname, 'index.html')); | |
}); | |
app.use(express.static(__dirname)); | |
app.listen(7860, () => { | |
console.log('App running on http://localhost:7860'); | |
}); | |