Skip to content

AndiHahn/AspNetCore-WebApi-CleanArchitecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNetCore-WebApi-CleanArchitecture

This repository shows clean architecture in practice in a ASP .NET Core Api Project.

The project's architecture is a modular monolithic application with 2 modules.

See detailed Information regarding clean architecture concept in the Wiki:
Wiki Clean Architecture

Technology Stack

  • ASP.NET Core (6.0)
  • Blazor Server App (6.0)
  • Entity Framework Core (6.0.2)
  • Swagger (Swashbuckle.AspNetCore 6.2.3)
  • Azure Blob Storage

Project Setup

  • Start "CleanArchitecture.Web.Api" Project (localDB CleanArchitectureDb and CleanArchitectureIdentityDb with seed data will be created automatically)
  • Api can be used via swagger documentation on "https://localhost:5001/swagger/index.html"

Authentication

Jwt Authentication is used.
Token is provided on endpoint /api/User/authenticate with Username: 'user@email.at', Password: 'password'.
Token can be set globally in swagger "Bearer << token >>"

The same login can be used in blazor application.