FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ERD-Codegen/csharp-dotnet: realworld api using minimal apis · GitHub

 
 

Repository files navigation

[Dotnet 8] 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 8] including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the [Dotnet 8] community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

How it works

Conversion of Clean Architecture setup using Dotnet into a version using Minimal API's The solution now does not have a direct dependency with dotnet mvc anymore

Consisting of the following layers:

  • api
  • data
  • infrastructure

Build using the following features:

  • Minimal api's
  • 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

realworld api using minimal apis

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL