0.2 Minimal Program.cs

Wire up MVC controllers and add GET /health returning
{ status: "Healthy", mqttConnected: false } (mqttConnected hardcoded
until the MQTT publisher lands). Switch launchSettings.json to port
8080 so the DoD curl works out of the box.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 13:48:02 +02:00
parent 5f851ed621
commit 65c398a578
4 changed files with 18 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ When working through this file, mark increments complete by changing `[ ]` to `[
- Add `.gitignore` (dotnet template), `global.json` pinning .NET 10 SDK.
- **DoD:** `dotnet build` and `dotnet test` both succeed (no tests yet, but harness runs).
### [ ] 0.2 Minimal Program.cs
### [x] 0.2 Minimal Program.cs
- Minimal hosting + controllers wired up.
- `GET /health` returning `{ status: "Healthy", mqttConnected: false }` (mqttConnected hardcoded for now).
- **DoD:** `dotnet run --project src/FrameProcessor` then `curl localhost:8080/health` returns 200 with the JSON.