Created
May 12, 2019 14:21
-
-
Save ronit-mukherjee/7bd0d70e0d72e4815862860134f5e9e2 to your computer and use it in GitHub Desktop.
Setup Node 10.15.x Web Server
This file contains 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
const http = require("http"); | |
const port = 3000; | |
const app = http.createServer((req,res)=>{ | |
res.write("Hello World"); | |
res.end(); | |
}); | |
app.listen(port,()=>{ | |
console.log("Server started at port "+port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment