Skip to content

Commit 0da715a

Browse files
committed
Initial commit - first app
0 parents  commit 0da715a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.idea
2+
/node_modules

server.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var http = require('http');
2+
3+
function onRequest(request, response) {
4+
response.writeHead(200, {'Content-Type': 'text/plain'});
5+
response.write('Hello World');
6+
response.end();
7+
}
8+
9+
http.createServer(onRequest).listen(8000);

0 commit comments

Comments
 (0)