UNPKG
nodism
Version:
latest (0.0.1)
0.0.1
'learning node, express, and cloud9'
github.com/stevebaker01/nodism
stevebaker01/nodism
nodism
/
main.js
7 lines
(6 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
var
http =
require
(
"http"
); http.
createServer
(
function
(
request, response
){ response.
writeHead
(
200
, {
'Content-Type'
:
'text/plain'
}); response.
end
(
'Hello World\n'
); }).
listen
(process.
env
.
PORT
);
console
.
log
(
'Serever running at http://127.0.0.1:8180'
);