Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yogyogi/ardalis-clean-architecture-implementation

This is the implementation of Clean Architecture by Steve "Ardalis" Smith
https://github.com/yogyogi/ardalis-clean-architecture-implementation

asp-net-core asp-net-core-identity entity-framework-core

Last synced: 22 days ago
JSON representation

This is the implementation of Clean Architecture by Steve "Ardalis" Smith

Awesome Lists containing this project

README

        

# 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.

```sh
dotnet ef migrations add MIGRATIONNAME -c AppIdentityDbContext -p ../Clean.Architecture.Infrastructure/Clean.Architecture.Infrastructure.csproj -s Clean.Architecture.Web.csproj -o Data/Migrations
```

```sh
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