How to connect all the MVC components?

Good time of day

I have the app on Node.js ( which is not important for the question)
I have three componate M V C :
require('./model');
require('./view');
 require('./controller');


Now subsequent depends on the previous one ( if you swap, then everything will break)

How to properly connect all the components? How to connect in the main file?
To connect whether only in the main file controller and from the controller all the rest ?

Thanks in advance.
July 12th 19 at 16:58

Find more questions by tags MVCNode.js