GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - abdullahacar/CleanArchitecture: Clean Architecture Solution Template for ASP.NET Core

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

480 Commits
480 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.template.config
.template.config
 
 
src
src
 
 
tests
tests
 
 
.DS_Store
.DS_Store
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CleanArchitecture.nuspec
CleanArchitecture.nuspec
 
 
CleanArchitecture.sln
CleanArchitecture.sln
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
global.json
global.json
 
 
package-lock.json
package-lock.json
 
 

Repository files navigation

Build CodeQL Nuget Nuget Discord Twitter Follow

Clean Architecture Solution Template

The goal of this template is to provide a straightforward and efficient approach to enterprise application development, leveraging the power of Clean Architecture and ASP.NET Core. Using this template, you can effortlessly create a Single Page App (SPA) with Angular and ASP.NET Core, while adhering to the principles of Clean Architecture. Getting started is easy - simply click Use this template above or install the .NET template (see below for full details).

Technologies

  • ASP.NET Core 8
  • Entity Framework Core 8
  • Angular 15
  • MediatR
  • AutoMapper
  • FluentValidation
  • NUnit, FluentAssertions, Moq & Respawn

Getting Started

The easiest way to get started is to install the .NET template and run dotnet new ca-sln:

  1. Install the latest versions of .NET 8 SDK and Node.js LTS
  2. Run dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5 to install the .NET template
  3. Run dotnet new ca-sln --output YourProjectName to create a new project
  4. Navigate to YourProjectName/src/WebUI and launch the project using dotnet run

Database

The template is configured to use an in-memory database by default. This ensures that all users will be able to run the solution without needing to set up additional infrastructure (e.g. SQL Server).

If you would like to use SQL Server, you will need to update WebUI/appsettings.json as follows:

  "UseInMemoryDatabase": false,

Verify that the DefaultConnection connection string within appsettings.json points to a valid SQL Server instance.

When you run the application the database will be automatically created (if necessary) and the latest migrations will be applied.

Database Migrations

To use dotnet-ef for your migrations first ensure that "UseInMemoryDatabase" is disabled, as described within previous section. Then, add the following flags to your command (values assume you are executing from repository root)

  • --project src/Infrastructure (optional if in this folder)
  • --startup-project src/WebUI
  • --output-dir Persistence/Migrations

For example, to add a new migration from the root folder:

dotnet ef migrations add "SampleMigration" --project src\Infrastructure --startup-project src\WebUI --output-dir Persistence\Migrations

Versions

The main branch is now on .NET 8.0. The following previous versions are available:

  • 7.0
  • 6.0
  • 5.0
  • 3.1

Learn More

  • Clean Architecture with ASP.NET Core 3.0 (GOTO 2019)
  • Clean Architecture with .NET Core: Getting Started

Support

If you are having problems, please let us know by raising a new issue.

License

This project is licensed with the MIT license.

About

Clean Architecture Solution Template for ASP.NET Core

Resources

Readme
License

Code of conduct

Code of conduct
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.