Node.js app in the real world : structure, dependency injection, events

Jérôme Morlon
9 min readAug 28, 2019

This is Part 1 of a 5-part series.

Part 0 was the introduction, now let’s move to our first real world questions about our REST API written in JavaScript under Node.js with a Koa server, a Mongodb database and the Mongoose ODM.

Let’s get cleanly organized ! Photo by Gabriel Beaudry on Unsplash

How to organize code, name files and write simple, readable

--

--