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

Update the base template structure to follow the Clean Architecture folder structure #258

Closed
luongvo opened this issue Aug 1, 2023 · 0 comments · Fixed by #262
Closed
Assignees
Milestone

Comments

@luongvo
Copy link
Member

luongvo commented Aug 1, 2023

Why

Our current template base structure under lib/ folder is not up to date with the Clean Architecture folder structure. There is no clear separation between the data, domain, and presentation layers. Also, the current structure does not fully follow the Clean Architecture components naming. Therefore, the project outcome lacks a sound foundation to commence development.

Here is the sample structure under lib/ folder to follow the Clean Architecture:

📦lib
 ┣ 📂core
 ┃ ┣ 📂errors
 ┣ 📂data
 ┃ ┣ 📂datasources
 ┃ ┃ ┣ 📂local
 ┃ ┃ ┗ 📂remote
 ┃ ┣ 📂models
 ┃ ┗ 📂repositories
 ┣ 📂domain
 ┃ ┣ 📂entities
 ┃ ┣ 📂repositories
 ┃ ┗ 📂usecases
 ┗ 📂presentation/app
 ┃ ┣ 📂routes
 ┃ ┣ 📂pages/screens
 ┃ ┗ 📂widgets
 ┣ di.dart
 ┣ main.dart

References:

Who Benefits?

Developers

@luongvo luongvo added this to the 1.11.0 milestone Aug 1, 2023
@doannimble doannimble self-assigned this Aug 1, 2023
doannimble added a commit that referenced this issue Aug 2, 2023
doannimble added a commit that referenced this issue Aug 2, 2023
doannimble added a commit that referenced this issue Aug 2, 2023
doannimble added a commit that referenced this issue Aug 2, 2023
doannimble added a commit that referenced this issue Aug 2, 2023
doannimble added a commit that referenced this issue Aug 2, 2023
doannimble added a commit that referenced this issue Aug 4, 2023
doannimble added a commit that referenced this issue Aug 4, 2023
doannimble added a commit that referenced this issue Aug 4, 2023
doannimble added a commit that referenced this issue Aug 4, 2023
doannimble added a commit that referenced this issue Aug 4, 2023
doannimble added a commit that referenced this issue Aug 4, 2023
doannimble added a commit that referenced this issue Aug 15, 2023
doannimble added a commit that referenced this issue Aug 16, 2023
doannimble added a commit that referenced this issue Aug 16, 2023
doannimble added a commit that referenced this issue Aug 16, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
doannimble added a commit that referenced this issue Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants