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

#2373 feature add: Vertical Slice Architecture. #2828

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added file structure.
  • Loading branch information
sugan0tech committed Apr 3, 2024
commit 08b77c5053f2ed4d253d4a4036acdbc71e3c4606
23 changes: 23 additions & 0 deletions vertical-slice-architecture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ In Plain Words
> Similarly, in software development, vertical slice architecture involves organizing the codebase based on features.
> Each feature has its own self-contained set of components, making it easier to add, modify, or remove features without disrupting the entire application.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add a minimal code example here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of code examples, can it be project file structure?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think we can improvise a bit here. Whatever describes the pattern most effectively.

**File structure**
> have a look in the below file structure, as per vertical slice architecture we are grouping model, view and controller per package associated with the feature.

```
- ecommerce
├── customer
│ ├── Customer.java
│ ├── CustomerRepository.java
│ ├── CustomerService.java
│ └── CustomerView.java
├── order
│ ├── Orders.java
│ ├── OrderRepository.java
│ ├── OrderService.java
│ └── OrderView.java
├── product
│ ├── Product.java
│ ├── ProductRepository.java
│ ├── ProductService.java
│ └── ProductView.java
└── App.java
```

## Class diagram

![Vertical Slice Architecture](./etc/vertical-slice-architecture.urm.png)
Expand Down
Loading