HACKER Q&A
📣 hahnbee

What's an example of a good Express backend?


I consider myself a stronger frontend developer than a backend one. I want to learn what the best file structure is for an Express backend. Do you guys have any good source available examples?


  👤 revskill Accepted Answer ✓
There's no "best" ones. But there's guiding principles to help you achieve one.

It's Clean Architecture, or Hexagon Architecture.

The idea is, the business layer dependencies is just interfaces. So you can easily mock in test.


👤 bradwood
Check out Nest JS. It's an opinionated overlay on Express which might be helpful as good for thought.