This codebase acts as a reference for the future me and any recruiter about the best practices that i follow while coding.
[Dotnet 6] codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
This codebase was created to demonstrate a fully fledged fullstack application built with [Dotnet 6] including CRUD operations, authentication, routing, pagination, and more.
Traditional Clean Architecture setup using Dotnet 6. Consisting of the following layers:
- api
- core
- data
- infrastructure
Build using the following features:
- the new WebApplication.CreateBuilder(args)
- file scoped namespaces
- Entity Framework Core with SQLite db
- serilog for logging
- logging integrated with application insights, including realtime monitoring
- Hellang.Middleware.ProblemDetails for consistent error output
- sonarlint for code scanning
This solution uses an in memory SQLite db. In case you want to use a file based db then you can add migrations as indicated below
Add migration by going to Data folder and execute: dotnet ef migrations add MigrationName --startup-project ../Api/Api.csproj
Run db upgrade: dotnet ef database update --startup-project ../Api/Api.csproj