I have taught Node.js + express.js to quite some people and there’s always a point where I just have to say: “this part is way too complex to explain at this point, so just copy/paste this”. This breaking point is connecting express.js to all those middlewares.
Note: thanks to npm making this possible and for their awesome support.
You might be surprised to know that I am developing server.js under the npm name “server”, so I can direct users to just do
npm install server. Wait, wasn’t this package taken already?