Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.71 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.71 KB

🔥 Clean Architecture Implementation Template for .NET apps 🌀

Pure and simple implementation following the Clean Architecture Principles, decoupled from frameworks and technology details. Use Cases as central organizing structure and smaller components developed and tested in isolation.

▶️ Running from source

$ dotnet run --project "source/Manga.WebApi/Manga.WebApi.csproj"

🏁 Development Environment

  • MacOS Catalina 🍎
  • Visual Studio Code ❤️
  • .NET Core SDK 2.2
  • Docker 🐳
  • SQL Server

💾 Setup SQL Server in Docker

Install SQL Server

To spin up a SQL Server in a docker container using the connection string Server=localhost;User Id=sa;Password=<YourNewStrong!Passw0rd>; run the following command:

$ ./source/scripts/sql-docker-up.sh

Add Migration

Run the EF Tool to add a migration to the Manga.Infrastructure project.

$ dotnet ef migrations add "InitialCreate" -o "EntityFrameworkDataAccess/Migrations" --project source/Manga.Infrastructure --startup-project source/Manga.WebApi

Update the Database

Generate tables and seed the database via Entity Framework Tool:

dotnet ef database update --project source/Manga.Infrastructure --startup-project source/Manga.WebApi

☎️ Support and Issues

I am happy to clarify the decisions I made in this project through the Issues tab so everyone will take benefit from the discussions.