Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the template following the clean architecute from R.C. Martin? #77

Closed
Deel96 opened this issue Mar 22, 2021 · 1 comment
Closed

Is the template following the clean architecute from R.C. Martin? #77

Deel96 opened this issue Mar 22, 2021 · 1 comment
Assignees
Labels

Comments

@Deel96
Copy link

Deel96 commented Mar 22, 2021

Summary(요약)

Is the template following the clean architecture from R.C. Martin?

Additional Details(추가적인 세부 사항)

the template project has a template like
/model ( or entities)
/service
/controller
/routes
pattern: https://github.com/ljlm0402/typescript-express-starter

But I have problems matching it to this architecture which many say is the de facto standard for a good software architecture

Like where do I find the entities, use cases, controllers etc.
For me only the controller layer is easy to find. In the template example project its also in the folder controllers.
In the example project the controllers use services and the services access the database.
If I try to map it to the pictures, use cases are the services and the entities are the models. But the models in the github project contain database specific code (for example typeorm notations).

grafik

@Deel96 Deel96 added the ❔ Question Question label Mar 22, 2021
@ljlm0402
Copy link
Owner

@Deel96

First of all, please understand that we will speak in translation because we do not speak English.

Robert C Martin's clean architecture says that the common goal is to separate hierarchies and interests, albeit with minor differences, but adhere to the rules of dependency for such an architecture to work. Suppose you have to.

We have divided the folders specific to interests according to the definition and developed them by function.
Also, I was interested in developing it focusing on 3 Layer architecture.

image

image

https://softwareontheroad.com/ideal-nodejs-project-structure/

If you don't get an answer to your question, I would appreciate it if you could say again what you think you know.  ˵ ͡ᵔ ͜ʟ ͡ᵔ ˵ 

@ljlm0402 ljlm0402 added the ❕ Answer Answer label Mar 23, 2021
@ljlm0402 ljlm0402 closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants