The code along ran over after lunch by 20 minutes because there was a lot of confusion about where things were getting copy / pasted to.
Suggestion - smaller steps:
- Separate out entry to application (
app.listen)
- Separate router (
router.js) from external middleware (app.js)
- Separate out controllers