Skip to content

Add product and category creation functionality#85

Merged
samuelzedec merged 3 commits intomainfrom
develop
Sep 21, 2025
Merged

Add product and category creation functionality#85
samuelzedec merged 3 commits intomainfrom
develop

Conversation

@samuelzedec
Copy link
Owner

@samuelzedec samuelzedec commented Sep 21, 2025

Description

This pull request introduces functionality for creating products and product categories as well as several supporting updates:

  • Implemented commands and handlers for creating products (CreateProductCommand) and categories (CreateProductCategoryCommand).
  • Added corresponding validators, responses, and specifications for category code validation.
  • Created API controllers for product and category management, including support for image uploads during product creation.
  • Introduced a new error message constant: CategoryCodeExist to handle duplicate category codes efficiently.
  • Updated certificate configurations for local development.
  • Removed the outdated coding-standards.md document and refined design-patterns.md for improved consistency.

No breaking changes have been introduced with this update.

Checklist

  • Unit tests added/updated
  • Documentation updated
  • Code reviewed

- Deleted `coding-standards.md` file as its content is obsolete.
- Updated `design-patterns.md` to reflect the latest domain and application structure for Riber.
- Incorporated references to the Specification pattern and additional refinements for documentation consistency.
…ations

- Added `CategoryCodeExist` constant to `ErrorMessage` class to handle duplicate category codes.
- Updated local development passwords in `generate-certificates.sh` and `appsettings.json` to `root@dev`.
- Simplified `SecurityStampMiddleware` logic by removing unnecessary try-catch block.
- Implemented `CreateProductCommand` and `CreateProductCategoryCommand` with associated handlers, responses, and validators.
- Added specifications for validating product category codes.
- Created API controllers for managing product and product category creation.
- Included support for image uploads in product creation through `CreateProductRequest`.
@samuelzedec samuelzedec merged commit 98b941d into main Sep 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant