Hey Clarence, I couldn't get this one to run (I think because of the various changes in middleware, etc... even though I'm using the suggested Express version). It looks very sweet and compact though, can't wait to see the updated one, thanks!

TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at exports.join (path.js:358:36)
at exports.send (/home/user1/workspace/nodemaria/node_modules/express/node_modules/connect/lib/middleware/static.js:129:20)
at ServerResponse.res.sendfile (/home/user1/workspace/nodemaria/node_modules/express/lib/response.js:186:3)
at /home/user1/workspace/nodemaria/app.js:39:9
at callbacks (/home/user1/workspace/nodemaria/node_modules/express/lib/router/index.js:272:11)
at param (/home/user1/workspace/nodemaria/node_modules/express/lib/router/index.js:246:11)
at pass (/home/user1/workspace/nodemaria/node_modules/express/lib/router/index.js:253:5)
at Router._dispatch (/home/user1/workspace/nodemaria/node_modules/express/lib/router/index.js:280:5)

Thanks for this 👍 And ohadpartuck if you wanted to move connection into a separate file you could just place it in, say, connection.js and in that file module.exports = connection then connection = require('./connection.js') in your main app.js file.