DEV Community

Kaziu
Kaziu

Posted on • Updated on

I've just created simple frontend Todo app with clean architecture

↓ detail here
https://github.com/kazoogon/frontend_with_cleanArchitecture

As I've written in title, I've just created frontend simple Todo app with clean architecture.

While I was creating this app, I thought like that

🤔 There is no absolute answer about architecture, even though I use clean architecture, there would be a lot of way

So It's happy if somebody improves my code / structure or just talks about it


By the way, if you want to learn about it, I recommend you to learn about SOLID principle at first, specially Dependency Inversion


After trying to make this one, honestly I thought clean architecture is too complicated, because we don't use often useCase and repository effectively.

So presentational and container pattern might be simpler and better way.

simply put, this pattern is that separating business login component and UI component.

Top comments (2)

Collapse
 
devtronic profile image
Julian Finkler

Take a look at this, it‘s german but Google translate should handle it 🙂
dev.to/devtronic/german-clean-arch...

Collapse
 
kaziusan profile image
Kaziu • Edited

oh danke schön, I'm gonna read it
I've not read yet whole article, but I think your code is far better than mine.
For example, this.viewModel keeps one instance by singleton