Skip to content

Instantly share code, notes, and snippets.

@ruddha2001
Last active May 4, 2020 14:30
Show Gist options
  • Save ruddha2001/e633d221ea14b0d9cf337a5dd7641103 to your computer and use it in GitHub Desktop.
Save ruddha2001/e633d221ea14b0d9cf337a5dd7641103 to your computer and use it in GitHub Desktop.
//Requiring Express in the file
const express = require("express");
const app = express(); //This is our Express Applicaiton
//We shall now define a simple route to display "Hello World"
app.get("/",function(req,res){
res.send("Hello World");
});
//Linking our server to a port of our choice
app.listen(6600,function(err){
if (err)
return console.log(err);
console.log("Server running on Port 6600");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment