ποΈFeatures and Modules
π― Understanding Modules and Features
π¦ What is a Module?
Examples of Modules:
β‘ What is a Feature?
Feature Examples:
π Business Requirements β Technical Mapping
The Mapping Process:
π Real-World Example: E-Commerce Application
Business Requirements:
π Module 1: Orders Module
Business Domain: Order Management
Purpose: Handle all order-related operations
Features in Orders Module:
1. AddOrder Feature (POST)
2. GetOrders Feature (GET)
π Database Optimization Magic - No Complex SQL Required!
1. Automatic Projection to Output Model
2. Database-Level Optimization
3. Performance Benefits
4. Complex Projections Made Simple
5. What You DON'T Have to Write
6. What You DO Write (Simple and Clean)
π― Key Benefits:
π‘ The Magic of SelectTo()
π¦ Module 2: Products Module
Business Domain: Product Catalog Management
Purpose: Handle all product-related operations
Features in Products Module:
1. AddProduct Feature (POST)
2. GetProducts Feature (GET)
π― Screen-to-Feature Mapping Examples
Example 1: Customer Order Screen
Screen Element
User Action
Feature
HTTP Method
Endpoint
Example 2: Admin Product Management Screen
Screen Element
User Action
Feature
HTTP Method
Endpoint
Example 3: Customer Dashboard Screen
Screen Element
User Action
Feature
HTTP Method
Endpoint
ποΈ Complete Module Structure
Typical Module Contains:
π― Feature Development Workflow
Step 1: Identify Business Requirement
Step 2: Map to Screen Action
Step 3: Define Feature
Step 4: Generate Code
Step 5: Add Business Logic
Step 6: Test and Deploy
π Module Planning Template
For Each Business Domain, Ask:
Example: Customer Management Module
Question
Answer
π Best Practices
Module Design:
Feature Design:
Naming Conventions:
π Summary
Last updated