summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/app.js
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-29 04:45:26 +0100
committerstartxfr <clarue@startx.fr>2015-11-29 04:45:26 +0100
commiteb3d88b10a0feb302a9fd1ec60a7a92caebb856c (patch)
treed5505c96ddd69b6c47cd00bb77f8de0b15012720 /Services/nodejs/app.js
parent78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df (diff)
downloadphpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.tar.gz
phpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.tar.bz2
phpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.tar.xz
phpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.zip
start reshaping nodejs service
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