rewire bootstrap with SQLite, HTTP API, and real polling

bootstrap: SQLite config, HTTP API on :3000, TCP on :2699, poll loops.
http-api: added serve() so bootstrap doesn't depend on axum directly.
polling: reads data sources from config, polls via http-json adapter,
pushes changed widgets to connected clients.

configure via API, e.g.:
  curl -X POST localhost:3000/api/data-sources -H 'Content-Type: application/json' -d '{...}'
  curl -X PUT localhost:3000/api/layout -H 'Content-Type: application/json' -d '{...}'
This commit is contained in:
2026-06-18 23:12:05 +02:00
parent af47e3939c
commit 15b75d860c
9 changed files with 135 additions and 85 deletions

16
Cargo.lock generated
View File

@@ -8,6 +8,12 @@ version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
[[package]]
name = "anyhow"
version = "1.0.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
[[package]]
name = "api-types"
version = "0.1.0"
@@ -144,10 +150,12 @@ dependencies = [
name = "bootstrap"
version = "0.1.0"
dependencies = [
"anyhow",
"application",
"config-memory",
"config-sqlite",
"domain",
"protocol",
"http-api",
"http-json",
"tcp-server",
"tokio",
]
@@ -1353,9 +1361,9 @@ dependencies = [
[[package]]
name = "quick-xml"
version = "0.37.5"
version = "0.40.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb"
checksum = "2474bd2e5029e7ccb6abb2ba48cf2383a333851dedf495901544281590c7da7f"
dependencies = [
"memchr",
"serde",