Skip to content

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

2 pointshahnbee4 comments
On 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?

Comments

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!

Note I said NEST not NEXT.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.