Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yogyogi/ardalis-clean-architecture-implementation
- Owner: yogyogi
- License: gpl-3.0
- Created: 2024-02-14T05:24:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T16:36:25.000Z (10 months ago)
- Last Synced: 2024-11-07T04:36:45.163Z (2 months ago)
- Topics: asp-net-core, asp-net-core-identity, entity-framework-core
- Language: C#
- Homepage: https://www.yogihosting.com/aspnet-core-clean-architecuture-ardalis-steve-smith/
- Size: 1.41 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 Records by Paging
## Login & Registration by ASP.NET Core Identity
## Testing
## Support
Your support of every $5 will be a great reward for me to carry on my work. Thank you !