soroushkavousi / ShelfAPI

Shelf API is a ASP.NET Core Web API sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C# 99.4%Language:TSQL 0.6%