Refactoring Express Backend

I feel like there is a lot to take in for this part. Whilst in the last part, all of the backend logic was basically stored in index.js, now we’ve refactored each portion into their own separate modules. Indeed, I can see how this could be an overkill for smaller apps, but for more complex projects, it would certainly ‘make developing the app much easier’. Let’s take a look at how that is done, line by line. ...

September 10, 2021 · 6 min · Lei