Skip to content

Instantly share code, notes, and snippets.

@ronit-mukherjee
Created May 12, 2019 14:21
Show Gist options
  • Save ronit-mukherjee/7bd0d70e0d72e4815862860134f5e9e2 to your computer and use it in GitHub Desktop.
Save ronit-mukherjee/7bd0d70e0d72e4815862860134f5e9e2 to your computer and use it in GitHub Desktop.
Setup Node 10.15.x Web Server
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