/CleanArchitech.Solution.v1

⭐This is boilerplate .net architecture using for all monolith project with .net core 3.1

Primary LanguageC#

CleanAspNetCoreWebApi

Starter project for creating APIs built on ASP.NET Core using clean architecture based on this blog post.

Setup

  • Uses Sql Server Express LocalDB (If using Visual Studio install it under Individual Components in the Visual Studio installer or install separately using this link.
  • Apply database migrations to create the db. From a command line within the Web.Api.Infrastructure project folder use the dotnet CLI to run : Web.Api.Infrastructure>dotnet ef database update

Visual Studio

Simply open the solution file CleanAspNetCoreWebAPI.sln and build/run.

Visual Studio Code

Open the src folder and F5 to build/run.

Setup before build app

1. Open package manager console -> Update-database

2. Import data customer to test. Open file script in Application -> Scripts -> copy all text in QuerySample1kCustomers.sql

3. Paste text to excute query in sql server