Giter Site home page Giter Site logo

tzesh / minimalistarchitecture Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 49 KB

Minimalist .NET 7 minimal API architecture with FluentValidation, Swagger, JWT Bearer Authentication, xUnit, and Serilog

C# 100.00%
bearer-authentication dotnet-7 dotnet-core fluentvalidation jwt-authentication minimalapi serilog swagger swagger-ui xunit

minimalistarchitecture's Introduction

MinimalistArchitecture

Minimalist .NET 7 minimal API architecture with

  • FluentValidation,
  • Swagger,
  • JWT Bearer Authentication,
  • xUnit,
  • and Serilog

The main idea that lies below creating this project was providing an architecture which contains numerous required complex functionalities and on the other hand basic and much more understandable from anyone who does not familiar with .NET technologies before. You can create your own routes, tests just simply looking at the previously generated routes/tests.

How to use

You can fork/download and build your own API on the top of framework that Minimalist Architecture provides. Minimalist Architecture will take the rest of your configurations about routes but you must have configure your DB if needed. Don't you forget to configure your DB settings (Program.cs) while adding new routes.

Footer of DB configuration

How to run the API

  • In order to run the project just simply use the command below:
dotnet run --project MinimalistArchitecture.API

Image of how to run the API

Once you run the project then you can access swagger by just adding "/swagger" at the end of your base address (i.e., for 'http://localhost:5135/' -> 'http://localhost:5135/swagger/'):

Footer of Swagger

How to run the tests

  • If you are aiming to test the project using xUnit simply use the code below
dotnet test

Image of how to test the API

minimalistarchitecture's People

Contributors

tzesh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.