Skip to content

A secure and scalable ASP.NET Core API for managing products, variants, and customer orders — built with clean architecture and JWT-based authentication.

Notifications You must be signed in to change notification settings

asmsayem202/ProductOrderManagementApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 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

About

A secure and scalable ASP.NET Core API for managing products, variants, and customer orders — built with clean architecture and JWT-based authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages