After years building Express APIs, I wanted to see how Hexagonal Architecture could improve structure and testability in Node.js apps.
So I built Create Express Auth, a minimal authentication boilerplate in Express and TypeScript that isolates domain logic from frameworks and infrastructure — aiming for a codebase that’s easy to extend, test, and reason about.
Key ideas:
- Clear separation between core domain, use-cases, and adapters
- Type-safe configuration and dependency injection
- Ready-to-use authentication flow (register/login) with Prisma
SaverioMazzi•2h ago
So I built Create Express Auth, a minimal authentication boilerplate in Express and TypeScript that isolates domain logic from frameworks and infrastructure — aiming for a codebase that’s easy to extend, test, and reason about.
Key ideas: - Clear separation between core domain, use-cases, and adapters - Type-safe configuration and dependency injection - Ready-to-use authentication flow (register/login) with Prisma
Article explaining the design: https://dev.to/francemazzi/create-express-auth-a-clean-archi...
I’d love feedback from developers who’ve experimented with TypeScript or architecture patterns in Node.js.
Any thoughts on balancing simplicity vs abstraction in Clean Architecture setups?