summaryrefslogtreecommitdiff
path: root/http.js
diff options
context:
space:
mode:
Diffstat (limited to 'http.js')
-rw-r--r--http.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/http.js b/http.js
new file mode 100644
index 0000000..14c9c94
--- /dev/null
+++ b/http.js
@@ -0,0 +1,6 @@
+var http = require('http');
+http.createServer(function (req, res) {
+ res.writeHead(200, {'Content-Type': 'text/plain'});
+ res.end('Hello World from Me\n');
+ console.log(req);
+}).listen(process.env.PORT); \ No newline at end of file