| @ -0,0 +1,13 @@ | |||||
| 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('<h1> Hello World</h1>'); | |||||
| }); | |||||
| server.listen(4040, ()=>{ | |||||
| console.log('listen on http://beaglebone-black.local:4040'); | |||||
| }); | |||||
| @ -0,0 +1,2 @@ | |||||
| <h1> Hello World</h1> | |||||
| Here we are in my Beagle | |||||