I'm a beginner with node.js and i'm trying to build my first web application. However i want to get good practices from the begining.
So I learn some guide to well organize my code. I went on MVC pattern that i understand well. But in the guides I read besides the models, views qnd controllers section there was a middleware section. I can't see the differences between middleware and controllers Here is the guide: http://www.terlici.com/2014/08/25/best-practices-express-structure.html
Can somebody explain me what is the purpsoe of using middlewares precisely, and the difference between middlewares and controllers precisely ?
Thank you in advance.