added api logic, vitest, minimal testing ui

This commit is contained in:
2025-11-15 23:26:57 -06:00
parent f4160b91db
commit 4eae966f96
95 changed files with 14155 additions and 469 deletions

28
Caddyfile.dev Normal file
View File

@@ -0,0 +1,28 @@
# Caddyfile.dev — local development (HTTP only)
{
auto_https off
admin off
}
:80 {
# Logs to stdout (handy in `docker compose logs caddy`)
log {
output stdout
format console
}
# Health-check / sanity page for the proxy itself
respond / "caddy ok" 200
# Proxy API: strip /api prefix and forward to the api service on 8080
handle_path /api/* {
reverse_proxy api:8080
}
# Helpful headers, even in dev
header {
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
}
}
}