diet
Version:
A tiny, fast and modular node.js web framework. Good for making fast & scalable apps and apis.
11 lines (9 loc) • 298 B
JavaScript
const http = require('http');
const hostname = '0.0.0.0';
const port = 7777;
http.createServer((req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});