... | @@ -256,49 +256,110 @@ Users can view profiles of participating farmers, including their farming practi |
... | @@ -256,49 +256,110 @@ Users can view profiles of participating farmers, including their farming practi |
|
# UML Diagram
|
|
# UML Diagram
|
|
|
|
|
|
## Use Case Model
|
|
## Use Case Model
|
|
|
|
![image](uploads/f61b42e467b716f3f4d12a5f27681843/image.png)
|
|
|
|
# Actors
|
|
|
|
- User
|
|
|
|
- Farmer
|
|
|
|
- System
|
|
|
|
- Payment Gateway
|
|
|
|
|
|
|
|
# Use Cases
|
|
|
|
- Register/Login
|
|
|
|
- Browse Products
|
|
|
|
- Place Order
|
|
|
|
- View Farmer Profile
|
|
|
|
- Leave Review
|
|
|
|
- View Order History
|
|
|
|
# Use Case: Place Order
|
|
|
|
|
|
|
|
## Actors
|
|
|
|
- Consumer
|
|
|
|
- System
|
|
|
|
- Payment Gateway
|
|
|
|
|
|
|
|
## Preconditions
|
|
|
|
- User must be logged in.
|
|
|
|
- Cart must contain products.
|
|
|
|
|
|
|
|
## Steps
|
|
|
|
1. User selects "Proceed to Checkout."
|
|
|
|
2. System calculates total cost.
|
|
|
|
3. User enters payment details.
|
|
|
|
4. Payment Gateway validates payment.
|
|
|
|
5. System confirms the order and provides a summary.
|
|
|
|
|
|
|
|
## Postconditions
|
|
|
|
- Order is recorded.
|
|
|
|
- User receives confirmation.
|
|
|
|
|
|
### 1. *User Registration*
|
|
---
|
|
- *Actors:* Consumer
|
|
![image](uploads/9953592c914dc43dc28ab034c15830e8/image.png)
|
|
- *Preconditions:* User has internet access.
|
|
# Use Case: Register/Login
|
|
- *Postconditions:* User has an account and can log in.
|
|
|
|
- *Main Flow:*
|
|
## Actors
|
|
1. User navigates to the sign-in/sign-up page.
|
|
- User
|
|
2. User fills out the registration form (name, email, password).
|
|
|
|
3. User submits the form.
|
|
## Preconditions
|
|
4. System confirms registration and directs the user to their profile.
|
|
- The user must have access to the internet.
|
|
|
|
|
|
|
|
## Postconditions
|
|
|
|
- A user account is created, or the user is logged in to access their profile and features.
|
|
|
|
|
|
|
|
## Main Flow
|
|
|
|
1. User navigates to the registration or login page.
|
|
|
|
2. User enters required information:
|
|
|
|
- For login: email and password.
|
|
|
|
- For registration: email, password, and additional details like name.
|
|
|
|
3. The system validates the input.
|
|
|
|
4. For registration:
|
|
|
|
- The system stores user information.
|
|
|
|
- The system sends a confirmation email.
|
|
|
|
5. The user is redirected to their profile/dashboard.
|
|
|
|
|
|
---
|
|
---
|
|
|
|
![image](uploads/5e89c8c2b1cfd5633ffc97d174593c45/image.png)
|
|
|
|
# Use Case: Browse Products
|
|
|
|
|
|
### 2. *Product Search and Order Placement*
|
|
## Actors
|
|
- *Actors:* Consumer
|
|
- User
|
|
- *Preconditions:* User is logged in.
|
|
|
|
- *Postconditions:* User has successfully placed an order.
|
|
## Preconditions
|
|
- *Main Flow:*
|
|
- The user is logged in to the system.
|
|
1. User navigates to the product catalog.
|
|
|
|
2. User searches for a specific product or browses categories.
|
|
## Postconditions
|
|
3. User adds desired items to the cart.
|
|
- The user views available products, filtered and sorted as needed.
|
|
4. User reviews the cart and proceeds to checkout.
|
|
|
|
5. User enters payment information and confirms the order.
|
|
## Main Flow
|
|
|
|
1. User navigates to the product catalog.
|
|
|
|
2. User browses the catalog or enters keywords in the search bar.
|
|
|
|
3. User applies filters (e.g., product category, price range) and sorts products (e.g., by price or availability).
|
|
|
|
4. System displays the filtered/sorted results.
|
|
|
|
5. User selects a product for more details.
|
|
|
|
|
|
---
|
|
---
|
|
|
|
![image](uploads/b58b42a3512303dd31300879806c34d3/image.png)
|
|
|
|
# Use Case: Leave Review
|
|
|
|
|
|
### 3. *Farmer Profile and Review*
|
|
## Actors
|
|
- *Actors:* Consumer
|
|
- User
|
|
- *Preconditions:* User is logged in and has purchased from a farmer.
|
|
|
|
- *Postconditions:* User has submitted a review.
|
|
## Preconditions
|
|
- *Main Flow:*
|
|
- The user has completed a purchase from a farmer.
|
|
1. User navigates to the farmer’s profile page.
|
|
|
|
2. User reads information about the farmer and their practices.
|
|
|
|
3. User clicks on the review section.
|
|
|
|
4. User submits a rating and a written review.
|
|
|
|
5. System updates the farmer’s profile with the new review.
|
|
|
|
|
|
|
|
|
|
## Postconditions
|
|
|
|
- The system records the user’s review and updates the farmer’s profile.
|
|
|
|
|
|
|
|
## Main Flow
|
|
|
|
1. User navigates to the farmer's profile or order history.
|
|
|
|
2. User selects "Leave a Review."
|
|
|
|
3. User enters a star rating and optional written feedback.
|
|
|
|
4. System validates the review and adds it to the farmer’s profile.
|
|
|
|
5. Other users can view the submitted review.
|
|
---
|
|
---
|
|
|
|
|
|
# Justifications
|
|
# Justifications
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 1. *User Registration and Profiles*
|
|
### 1. *User Registration and Profiles*
|
|
|
|
|
|
- *Justification:* Enhances user engagement by personalizing the shopping experience, making it easier for users to return and reorder.
|
|
- *Justification:* Enhances user engagement by personalizing the shopping experience, making it easier for users to return and reorder.
|
... | | ... | |