I am developing a full MEAN stack web application. At this moment my app is listening to localhost:3000. Is there any way in js that I can set a URL like www.something.com and it will redirect to localhost:3000. Below is a sample server code that I have implemented.
#!/usr/bin/env node
var debug = require('debug')('passport-mongo');
var app = require('./app');
app.set('port', process.env.PORT || 3000);
var server = app.listen(app.get('port'), function() {
debug('Express server listening on port ' + server.address().port);
});