summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'Services/nodejs/app.js')
-rw-r--r--Services/nodejs/app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/Services/nodejs/app.js b/Services/nodejs/app.js
new file mode 100644
index 0000000..6a0da10
--- /dev/null
+++ b/Services/nodejs/app.js
@@ -0,0 +1,10 @@
+// Load the http module to create an http server.
+var http = require('http');
+
+var server = http.createServer(function (request, response) {
+ response.writeHead(200, {"Content-Type": "text/plain"});
+ response.end("Hello World\n");
+});
+server.listen(8000);
+
+console.log("Server is running"); \ No newline at end of file