|
|
- const express = require("express");
- const app = express();
- const http = require("http");
- const server = http.createServer(app);
-
- app.get('/', (req, res)=>{
- res.send('<h1> Hello World</h1>');
- });
-
- server.listen(4040, ()=>{
- console.log('listen on http://beaglebone-black.local:4040');
- });
|