aboutsummaryrefslogtreecommitdiff
path: root/index.js
blob: 6ea86dabd0dc7fd7c75e86024b50515b00defac4 (plain) (blame)
1
2
3
4
5
6
7
8
const http = require('http');

http.createServer((req, res) => {

  res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});
  res.end('<h1>lol</h1>');

}).listen(8080, () => console.log('Server started on port 8080.'));