Pragmatic.DotNet.Templates
1.0.0
dotnet new install Pragmatic.DotNet.Templates::1.0.0
This package contains a .NET Template Package you can call from the shell/command line.
dotnet-template
Templates for my API/SPA/Blazor projects
Getting Start
Prerequisites
- .Net 8 SDK
- Node.js (for Front Project in ViteJS with React/TS)
Development
- Pour mettre à jour localement le template, lancer le script PowerShell à la racine :
><path>/dotnet-templates/ ./.scripts/publish.ps1
Usage
Installer le template locallement à partir de NuGet:
dotnet new install DotNet.Template.Solution.Template::8.0.5
Template for API:
dotnet new bmm-api -V Core -o YourProjectName
Template for React SPA:
dotnet new bmm-react -o YourProjectName
Deployment
- La stack Core n'inclue pas de mode de déploiement (si ce n'est Docker)
- La stack PaaS utilise les services Azure
Core Features
dotnet new bmm-api -o YourProjectName
- Minimal API Endpoints - native
- Quotas - native
- Clean Architecture structure - native
- Global Error Handling - middleware native
- Configuration - AppSettings.json + User Secrets
- Mapping DTO - Automapper
- Discoverability / API Documentation - Swagger/Open API
- Health Checks - native - middleware pour insérer des checks de dépendances externes (API/DB)
- Tests - xUnit / FluentAssertions / TestConfiguration + Integration WebApplicationFactory
- Validation - FluentValidation
- Resilience - Polly
- (option) CQRS - Dapper
- (option) User Authentication - AspNetUser Core Identity
- (option) Persistence - EF Core 8 - SQLite | SQL Server
- (option) Infrastructure Authorization - MS Entra Azure AD Application
- (option) Versioning - native
Azure Features
dotnet new bmm-api -V PaaS -o YourProjectName
- Logging/Observability - AppInsights
- (optional) Feature Flag - Azure App Configuration
- (option) User Authentication - OAuth2 via Azure AD Account | JWT/OpenID Server (Identity Server)
- (option) Application Authentication - MS Entra Azure AD Application
- (option) Cache server - Azure Cosmos DB / SQL Server pour du cache distribué
Licence
This project is under MIT Licence
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 149 | 8/14/2024 |