https://github.com/asmsayem202/productordermanagementapi
A secure and scalable ASP.NET Core API for managing products, variants, and customer orders — built with clean architecture and JWT-based authentication.
https://github.com/asmsayem202/productordermanagementapi
aspnet-core clean-architecture entity-framework-core jwt-authentication rest-api sql-server webapi
Last synced: 2 months ago
JSON representation
A secure and scalable ASP.NET Core API for managing products, variants, and customer orders — built with clean architecture and JWT-based authentication.
- Host: GitHub
- URL: https://github.com/asmsayem202/productordermanagementapi
- Owner: asmsayem202
- Created: 2025-07-16T10:29:09.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-07-24T14:34:11.000Z (11 months ago)
- Last Synced: 2025-07-24T19:26:13.977Z (11 months ago)
- Topics: aspnet-core, clean-architecture, entity-framework-core, jwt-authentication, rest-api, sql-server, webapi
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🛒 Product & Order Management System API
An ASP.NET Core Web API for managing products, variants, and customer orders. Includes role-based JWT authentication, FluentValidation for input validation, and a clean service architecture.
---
## 🚀 Features
### ✅ Product Management
- Create, update, view, and delete products
- Each product can have multiple variants
- Product Fields: `name`, `brand`, `type` (`enum`: Mug, Jug, Cup, etc.)
- Variant Fields: `color`, `specification`, `size` (`enum`: Small, Medium, Large)
### ✅ Order Management
- Create orders in multiple steps:
1. Select products
2. Select variants and quantity
3. Provide customer information
- View, update, and delete orders
- Calculates total quantity automatically
### ✅ Authentication
- Register and login using JWT tokens
- Secure endpoints with [Authorize] attributes
- Roles: `Admin`, `User`
- Admin can create/update/delete products
- Users can place/view orders
### ✅ Built With
- ASP.NET Core 8 Web API
- Entity Framework Core + MS SQL Server
- ASP.NET Core Identity
- FluentValidation
- JWT Authentication
- Swagger (OpenAPI)
---
✅ JWT authentication and role-based authorization
✅ SuperAdmin and role seeding
✅ CRUD operations for Products, Variants, Orders
✅ Clean architecture with Dtos, Services, Validators, Controllers
✅ Fluent validations and null-safety
✅ Entity relationships resolved and optimized (e.g., no cascade cycles)
✅ DTO mappings for better API responses
✅ Clean Program.cs with extracted seeding logic