7 lines
253 B
JavaScript
7 lines
253 B
JavaScript
const http = require('http');
|
|
const port = process.env.PORT || 8080;
|
|
http.createServer((req, res) => {
|
|
res.writeHead(200, {'Content-Type': 'text/plain'});
|
|
res.end('hello from ghaymah ci');
|
|
}).listen(port, () => console.log('listening on ' + port));
|