Server is starting without any errors but the URL is hit its showing no application running.
URL:link_To_Server
My Code:
var express= require('express');
var app=express();
app.get('/', function(req, res, next) {
console.log('home');
res.send(200);
res.end('getting requests');
});
console.log('server started');
You didn't actually set the server to listen to a port. Replace
console.log('server started');
With
app.listen(3000, function() {
console.log('server started');
});
Note that with the above example, the bound port is 3000. For more info, see the API doc