Created
February 22, 2019 15:16
-
-
Save avinashseth/3a90fa76709e479c80535db00a7efa60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| var server = http.createServer(function(request, response) { | |
| response.writeHead(200, {"Content-Type": "text/plain"}); | |
| response.end("Hello world with Avinash Seth"); | |
| }); | |
| var port = process.env.PORT || 8000; | |
| server.listen(port); | |
| console.log("Server running at http://localhost:%d", port); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment