Skip to content
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.

Commit

Permalink
Hello World - NodeJS
Browse files Browse the repository at this point in the history
  • Loading branch information
kohchihao committed Oct 1, 2017
1 parent 2674fde commit e4f0e02
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hello_world.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var http = require("http");

http.createServer(function (request, response) {

response.end('Hello World!');
}).listen(8080);

console.log('Server running at http://127.0.0.1:8080/');
37 changes: 37 additions & 0 deletions node_modules/http/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "hacktoberfest",
"version": "1.0.0",
"description": "Hacktoberfest",
"main": "hello_world.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Koh Chi Hao",
"license": "ISC",
"dependencies": {
"http": "0.0.0"
}
}

0 comments on commit e4f0e02

Please sign in to comment.