Rewrite btcprice from Clojure to Python FastAPI

Replace the Clojure Kit application with a Python FastAPI app that
produces identical HTML output. WebSocket proxy, Danish number
formatting, and HTMX integration all preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 12:33:03 +01:00
co-authored by Claude Opus 4.6
parent ae676f2b6c
commit c999d831e7
37 changed files with 277 additions and 780 deletions
+6 -12
View File
@@ -1,25 +1,19 @@
include .env
export
.PHONY: clean run run-docker repl tailwind test uberjar
.PHONY: clean run run-docker tailwind test
clean:
rm -rf target
rm -rf __pycache__ app/__pycache__
run:
clj -M:dev -e "(dev-prep!) (go)" -r
.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 4000 --reload
run-docker:
BTCDATA_URL=http://localhost:4101 clj -M:dev -e "(dev-prep!) (go)" -r
repl:
clj -M:dev:nrepl
run-local:
BTCDATA_URL=$(BTCDATA_LOCAL_URL) .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 4000 --reload
tailwind:
npm run css:watch
test:
clj -M:test
uberjar:
clj -T:build all
.venv/bin/python -m pytest tests/