Web models, business rules, aggregates, value objects, and domain services for Nera applications
$ dotnet add package Nera.Lib.WebNera.Lib.Web is a foundational library for building web applications in the Nera ecosystem. It provides web models, business rules, aggregates, value objects, and domain services, with a focus on clean architecture and DDD ( Domain-Driven Design) principles.
Add the NuGet package to your project:
# Using .NET CLI
dotnet add package Nera.Lib.Web --version 1.0.0
Or add the following to your .csproj:
<PackageReference Include="Nera.Lib.Web" Version="1.0.0" />
Configure Services
Register Nera.Lib.Web services in your Startup.cs or Program setup:
services.AddNeraWeb(); // Example extension method
Use Middleware Add the provided middleware components to your pipeline as needed:
app.UseMiddleware<ExceptionHandlingMiddleware>();
app.UseMiddleware<RequestLoggingMiddleware>();
// ...other middleware
API Versioning & Swagger
services.AddApiVersioning();
services.AddSwaggerGen();
Authentication & Authorization
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options => { /* ... */ });
services.AddAuthorization(options => { /* ... */ });
Authorize/ – Authorization handlers, requirements, and attributesCloud/ – Cloud abstractions and implementationsCommon/ – Enums, exceptions, extensions, and utilitiesConfiguration/ – Configuration classes and optionsFactories/ – Factory patterns for providersMessaging/ – Messaging abstractions and implementationsModels/ – Domain and web modelsSecurity/ – JWT and security servicesServices/ – Base servicesWebBootstrap/ – Application bootstrap and Swagger configurationMiddleware/ – Custom middleware componentsFilters/ – API filtersExtensions/ – Service and middleware extension methodsContributions are welcome! Please open issues or submit pull requests on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
Nextera Systems
For more information, visit Nextera Systems on GitHub.