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.
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.
- In order to run the project just simply use the command below:
dotnet run --project MinimalistArchitecture.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/'):
- If you are aiming to test the project using xUnit simply use the code below
dotnet test