7 lines
256 B
TypeScript
7 lines
256 B
TypeScript
import * as http from 'http';
|
|
const port = process.env.PORT || 8080;
|
|
http.createServer((req, res) => {
|
|
res.writeHead(200, {'Content-Type': 'text/plain'});
|
|
res.end('hello from ghaymah ci typescript');
|
|
}).listen(port, () => console.log('ts listening'));
|