How Kent C. Dodds structures his Express apps
- He puts an env check in index.js to determine whether nodemon should be used or a regular Node process
- Properly closes his app on exit
- Sets it up so that it's easy to test (because he's Kent, after all)
Creator of Project Wallace, analytics for CSS. <noscript>-fanboy. Serverless clearfix engineer. I can lift node_modules twice my own weight.