Skip to content

Example demonstrates vertical slice architecture in an e-commerce app. Each feature module, like product listing, has its own set of contracts and services, promoting modularity and encapsulation. Infrastructure layer provides concrete implementations, enabling independent development and testing of feature-specific functionality.

License

Notifications You must be signed in to change notification settings

yunuskiran/vertical-slice-architecture-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Application

This is an example e-commerce application showcasing the vertical slice architecture. The application is designed to demonstrate a modular and scalable approach to building software systems.

Folder Structure

The project follows a structured folder organization:

  • src
    • ECommerce.Core
      • Features
        • ProductListing
          • Contracts
          • Services
        • ShoppingCart
          • Contracts
          • Services
      • Shared
        • Logging
    • ECommerce.Infrastructure
      • Data
        • Repositories
      • ExternalServices
    • ECommerce.Web
      • Controllers
      • Views

Vertical Slice Architecture

The application follows a vertical slice architecture pattern, where each feature module is organized as a self-contained unit. This architecture promotes modularity, encapsulation, and easier maintenance.

Key characteristics of the vertical slice architecture:

  • Feature Modules: Each feature, such as product listing or shopping cart, has its own folder containing contracts and services specific to that feature. This modular structure facilitates independent development and testing of individual features.
  • Encapsulation: Business logic and related components are encapsulated within their respective feature modules, ensuring clear separation and isolation of functionality.
  • Scalability: The vertical slice architecture allows for easy scalability as new features can be added without impacting existing modules, enabling parallel development and deployment.

Please refer to the specific folders and files within the project for more details and code examples.

About

Example demonstrates vertical slice architecture in an e-commerce app. Each feature module, like product listing, has its own set of contracts and services, promoting modularity and encapsulation. Infrastructure layer provides concrete implementations, enabling independent development and testing of feature-specific functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published