# d3nhatv0lam/chasing-light-be architecture

> Architecture diagram of the GitHub repository d3nhatv0lam/chasing-light-be, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/d3nhatv0lam/chasing-light-be
- Repository: https://github.com/d3nhatv0lam/chasing-light-be

## Overview

This is a small ASP.NET Core weather-forecast API. An HTTP client requests the controller’s GET endpoint; the controller generates five forecast records and returns them using the WeatherForecast model. Program.cs registers and maps controllers, and configures HTTPS redirection and authorization. The repository shows no persistent storage or external service integrations. The graph is limited to the sampled runtime files; the README is empty.

Main entry points: [`src/ChasingLight.Api/Controllers/WeatherForecastController.cs`](https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/Controllers/WeatherForecastController.cs) (Forecast endpoint), [`src/ChasingLight.Api/Program.cs`](https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/Program.cs) (API host), [`src/ChasingLight.Api/WeatherForecast.cs`](https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/WeatherForecast.cs) (Forecast model)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_client(("HTTP client"))
node_host["API host<br/>[Program.cs]"]
node_controller["Forecast endpoint"]
node_forecast["Forecast model<br/>[WeatherForecast.cs]"]

node_host -->|"maps controllers"| node_controller
node_client -->|"requests GET"| node_controller
node_controller -->|"creates records"| node_forecast
node_controller -->|"returns forecasts"| node_client

click node_host "https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/Program.cs"
click node_controller "https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/Controllers/WeatherForecastController.cs"
click node_forecast "https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/WeatherForecast.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client toneBlue
class node_host toneMint
class node_controller toneTeal
class node_forecast toneIndigo
```

## Components

### Other components

- **HTTP client**
- [API host](https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/Program.cs): `src/ChasingLight.Api/Program.cs`
- [Forecast endpoint](https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/Controllers/WeatherForecastController.cs): `src/ChasingLight.Api/Controllers/WeatherForecastController.cs`
- [Forecast model](https://github.com/d3nhatv0lam/chasing-light-be/blob/main/src/ChasingLight.Api/WeatherForecast.cs): `src/ChasingLight.Api/WeatherForecast.cs`

## Connections

- API host → Forecast endpoint: maps controllers (evidence: `src/ChasingLight.Api/Program.cs`)
- HTTP client → Forecast endpoint: requests GET (evidence: `src/ChasingLight.Api/Controllers/WeatherForecastController.cs`)
- Forecast endpoint → Forecast model: creates records (evidence: `src/ChasingLight.Api/Controllers/WeatherForecastController.cs`)
- Forecast endpoint → HTTP client: returns forecasts (evidence: `src/ChasingLight.Api/Controllers/WeatherForecastController.cs`)
