const fs = require('fs') const http = require('http') const requestListener = async function (req, res) { res.writeHead(200); fs.readFile('index.html', 'utf8', (err, data) => { res.end(data); }); }; const server = http.createServer(requestListener) server.listen(5050)