Ask HN: What's an example of a good Express backend?

2 points by hahnbee ↗ HN
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?

5 comments

[ 3.2 ms ] story [ 33.2 ms ] thread
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.

Whoa thanks. Both look cool. I'll check them out.
Check out Nest JS. It's an opinionated overlay on Express which might be helpful as good for thought.
This is smart. I already use next.js for my frontend. Mirroring its structure for my backend will be good for consistency. Thanks!