Skip to content

A template for an API using Clean Architecture and .NET Minimal API's.

License

Notifications You must be signed in to change notification settings

akshatcdec/CleanMinimalApi

Repository files navigation

Clean Minimal API

This is a sample application to be an example of using Clean Architecture alongside .net 6's Minimal APIs.

Features

Docker

There's a dockerfile included in the build folder and serves the purpose of restoring, building, testing, publishing and then creating a runtime image of the API. Works on my machine.....

docker build -f ./build/Dockerfile -t minapi:latest .

Prerequisites

This solution depends on the pre-release SDK for .net 6, you need to install that before it will work for you.

Projects

This solution contains a few projects to follow the Clean Architecture patterns, it's by no means perfect. But it's an example so cut me some slack. Each project has a purpose and is separated from the others, for a far more well thought out solution please see Jason Taylor's Clean Architecture Template

Resources

This sample would not have been possible without gaining inspiration from the following resources. If you are on your own learning adventure please read the following blogs and documentation.

About

A template for an API using Clean Architecture and .NET Minimal API's.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.8%
  • Dockerfile 1.2%