question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clean architecture and DDD examples

See original GitHub issue

I’m submitting a…


[ ] Regression 
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

NestJS is a really good framework designed with a module architecture.

Expected behavior

Would be really nice to have some official examples of how to design a nest application with clean and DDD design architecture.

What is the motivation / use case for changing the behavior?

Use those patterns allow us to write applications with “standard” design in mind. E.g. promoting the reuse of the layers when using different transport at the same time.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:64
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
Sumickcommented, May 7, 2019

Something like that? Not official but still matches the pattern -> https://github.com/juangonzaq/nestjs-ddd/tree/master/src

9reactions
adico1commented, Dec 16, 2019

i created a repository with my “Production Ready” clean architecture NestJS based clean architecture.

Hope you’ll enjoy it - I did.

https://github.com/adico1/clean-on-nest

  1. it requires PostgresSQL locally installed
  2. npm install

Seed DB and Run Test 3) npm run start:dev:db:seed && npm run test:e2e

Start in Dev mode 4) npm run “start:dev”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clean Domain-Driven Design - Medium
DDD is used to model the domain entities encapsulating intra-aggregate invariants (validators in constructors). · Use cases (from Clean Architecture) are used to ......
Read more >
Comparison of Domain-Driven Design and Clean Architecture ...
Eric Evans' "Domain-Driven Design" and Uncle Bob's "Clean Architecture" are books that have introduced tactical approaches towards building complex ...
Read more >
A Template for Clean Domain-Driven Design Architecture
A software architectural template for applying Clean Domain-Driven Design and CQRS to your own solutions.
Read more >
Camunda DDD and Clean Architecture - GitHub
To reach the goals of clean architecture, the domain code must not have any dependencies pointing outwards. Instead, all dependencies point towards the...
Read more >
Difference between Domain Driven Design and Clean ...
Clean Architecture, as one example of domain-centric architectures, is a certain way to structure your code to achieve certain properties ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found