Mini tutorial de crear un sever básico con HTTP
const http = require('http');
const host = '127.0.0.1';
const PORT = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hi, World');
});
server.listen(PORT, host, () => {});