Last active
May 4, 2020 14:30
-
-
Save ruddha2001/e633d221ea14b0d9cf337a5dd7641103 to your computer and use it in GitHub Desktop.
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
//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