Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
create a server using Node js
const express = require ('express');
const app = express();
const port = 3000;
app.get("/",function(req,res){
res.end("hello world");
})
app.listen(port,function(){
console.log("server is running port " + port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment