Skip to content

soroushkavousi/ShelfAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shelf Api (E-Commerce sample of ASP.NET Core Web API)

.NET Version

Features

  • Clean Architecture
  • Domain-Driven Design (DDD)
  • CQRS with MediatR
  • ASP.NET Core Identity
  • JWT
  • Role Based Authorization, has admin and user routes
  • Serilog for logging with Seq sink
  • Mapster for mapping Models to DTOs
  • Entity Framework Core for PostgreSQL
    • Used ValueConverter and Pre-defined conversions
  • Using Startup Data
    • Load environment variables, such as connection string
    • Load service registeration settings from database, such as JWT settings
  • Utilizing Base Data Service
    • Retrieve project settings stored as JSON values from a dedicated database table
    • Fetch caching data from various tables
  • OwnsOne in EF Core for owning value objects such as Price in Product
  • Error Handling with Result Pattern
    • has implicit operator, and deconstruct
    • used in try-create pattern value objects
  • Has Product, Order, OrderLine

About

Shelf API is a ASP.NET Core Web API sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published