2021-04-08 11:41:31 +02:00
|
|
|
const http = require('http');
|
2021-03-04 16:36:29 +01:00
|
|
|
|
2021-04-08 11:41:31 +02:00
|
|
|
const server = http.createServer(function(req, res){
|
|
|
|
res.writeHead(200);
|
|
|
|
res.end('Hello World!!');
|
2021-03-04 16:36:29 +01:00
|
|
|
});
|
|
|
|
|
2021-04-08 11:41:31 +02:00
|
|
|
server.listen(8080);
|
|
|
|
console.log('http zerbitzaria lanean 8080 atakan...');
|