Skip to content

tsaideepak7/DotNetCore

 
 

Repository files navigation

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.

Demo    

This codebase was created to demonstrate a fully fledged fullstack application built with [Dotnet 6] including CRUD operations, authentication, routing, pagination, and more.

How it works

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

Getting started

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

migrations

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.2%
  • Dockerfile 1.8%