Skip to content

yogyogi/Ardalis-Clean-Architecture-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ardalis Clean Architecture Implementation

This is the implementation of Clean Architecture by Steve "Ardalis" Smith. Here CRUD operations on a Student Entity is performed. The complete tutorial is provided at - Implement Ardalis Clean Architecture

Features

  1. ASP.NET Core 8.0 version.
  2. CRUD Operations on ASP.NET Core MVC.
  3. MVC Views for the UI.
  4. Number based Paging implementation for razor view.
  5. Authentication and Authorization by Identity.
  6. Login, Logout, Register features in Razor Pages.
  7. Unit, Integration and Functional Tests.

Getting Started

  1. Simply Download the run the repository. Then go to /Student/Read uri to start with the CRUD operations.
  2. For Identity you have to perform migrations. This will create Identity database. Go to the directory of "Web" project where their is Clean.Architecture.Web.csproj. From here run the migration commands.
dotnet ef migrations add MIGRATIONNAME -c AppIdentityDbContext -p ../Clean.Architecture.Infrastructure/Clean.Architecture.Infrastructure.csproj -s Clean.Architecture.Web.csproj -o Data/Migrations
dotnet ef database update --context AppIdentityDbContext

You can make any action method of StudentController.cs as secured by adding [Authorize] attribute over it.

Don't forget to view the connection string of Identity Database given on appsettings.json file on "Web" project.

User Interface

Here we can perform CRUD Operations on a Student Entity.

Read Records

read feature

Read Records by Paging

paging feature

Login & Registration by ASP.NET Core Identity

login feature

register feature

Testing

test feature

Support

Your support of every $5 will be a great reward for me to carry on my work. Thank you !

Buy Me A Coffee Paypal Me

Releases

No releases published

Packages

No packages published

Languages