Learning node.js/express.js: What’s the deal with bin/www?

Here is the reason, stated succinctly by an express maintainer:

So you can require(‘./app’) from external files and get the express
app that is not listening on any port (think unit tests and the like).

source

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)