This is as bare a node App as you can make but it comes in handy when you want a . dummy server just to return 200s and or a JSON object at super fast speeds on small systems:
var express = require('express'); var app = express(); app.get('*', function(req, res) { res.sendStatus(200); }); app.listen('3000'); console.log('Magic happens on port 3000'); exports = module.exports = app;
Before running the js file runnpm install express
to deploy express..
Thats it !
nJoy 😉