const express = require("express"); const app = express(); const http = require("http"); const server = http.createServer(app); app.get('/', (req, res)=>{ res.sendFile(__dirname + '/index-static.html'); //res.send('

Hello World

'); }); server.listen(4040, ()=>{ console.log('listen on http://beaglebone-black.local:4040'); });