How ravikandel/ravi.web works
This repository contains a small ASP.NET health-check API, its service/repository layers, a generated .NET API client, and a separate Vite/React starter screen. The backend workflow checks database health, builds a service response, maps it to the API model, and returns it through the controller. The generated client can request the health-check endpoint and deserialize its response. The React app currently displays the Vite counter demo and is not shown calling the API. Edges reflect excerpts and source-index references; unsampled wiring is omitted.
Main entry points: HealthCheckApi.cs Health API client · HealthCheckService.cs Health service · Program.cs ASP.NET host · HealthCheckApiController.cs Health controller
Components 17
Web host
- ASP.NET host
Ravi.WebHost/Program.cs - Environment settings
Ravi.WebHost/Configuration/EnvironmentSettings.cs - Service registration
Ravi.WebHost/ServiceRegistration.cs
Health check backend
- Health controller
Ravi.Web.Api/ControllersImpl/HealthCheckApiController.cs - Response mapper
Ravi.Web.Api/ControllersImpl/Mappers/ApiMappers/HealthCheckMapper.cs - Health service
Ravi.Web.Services/HealthCheck/HealthCheckService.cs - Health repository
Ravi.Web.Repositories/HealthCheck/HealthCheckRepository.cs - DB connection factory
Ravi.Web.Repositories/DbConnection/DbConnectionFactory.cs - Service response
Ravi.Web.ServiceModel/HealthCheck/HealthCheckResponse.cs - API response model
Ravi.Web.Api/Models/HealthCheckResponseV1.cs
Generated API client
- Health API client
Ravi.Web.Client/Api/HealthCheckApi.cs - Client utilities
Ravi.Web.Client/Client/ClientUtils.cs - JSON options
Ravi.Web.Client/Client/JsonSerializerOptionsProvider.cs - Client response model
Ravi.Web.Client/Model/HealthCheckResponseV1.cs
React starter
- Demo app
clientApp/src/App.tsx
Other components
- API caller
- Browser user
Connections 14
- ASP.NET host → Environment settings: reads environment
Ravi.WebHost/Program.cs - ASP.NET host → Service registration: registers services
Ravi.WebHost/Program.cs - Health controller → Health service: checks health
Ravi.Web.Api/ControllersImpl/HealthCheckApiController.cs - Health controller → Response mapper: maps response
Ravi.Web.Api/ControllersImpl/HealthCheckApiController.cs - Response mapper → Service response: maps from
Ravi.Web.Api/ControllersImpl/Mappers/ApiMappers/HealthCheckMapper.cs - Health service → Health repository: checks database
Ravi.Web.Services/HealthCheck/HealthCheckService.cs - Health service → Service response: builds response
Ravi.Web.Services/HealthCheck/HealthCheckService.cs - Service registration → DB connection factory: registers factory
Ravi.WebHost/ServiceRegistration.cs - Health API client → Client utilities: formats request
Ravi.Web.Client/Api/HealthCheckApi.cs - Health API client → JSON options: uses JSON options
Ravi.Web.Client/Api/HealthCheckApi.cs - Health API client → Client response model: deserializes response
Ravi.Web.Client/Api/HealthCheckApi.cs - API caller → Health API client: invokes client
- Health API client → ASP.NET host: HTTP request
- Browser user → Demo app: views demo