gaurav46 / clean-architecture-manga

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.

Home Page:http://paulovich.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ”ฅ 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.

About

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.

http://paulovich.net/

License:Apache License 2.0


Languages

Language:C# 99.6%Language:Shell 0.4%Language:PowerShell 0.0%