diff --git a/helloworld.js b/helloworld.js new file mode 100644 index 0000000..527990d --- /dev/null +++ b/helloworld.js @@ -0,0 +1,5 @@ +function hw() { + console.log('Hello World!'); +} + +hw(); \ No newline at end of file diff --git a/http_server.js b/http_server.js new file mode 100644 index 0000000..b8f2934 --- /dev/null +++ b/http_server.js @@ -0,0 +1,8 @@ +var http = require('http'); + +http.createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end('Hello RHEL 8!\n'); +}).listen(3002, "127.0.0.1"); + +console.log('Server running at http://127.0.0.1:3002/'); \ No newline at end of file