Update doc

This commit is contained in:
2026-09-10 13:12:35 +02:00
parent d5e5b78334
commit e15f00e98c
4 changed files with 135 additions and 60 deletions
+18 -8
View File
@@ -1,19 +1,29 @@
include .env
-include .env
export
.PHONY: clean run run-docker tailwind test
VENV := .venv
UVICORN := $(VENV)/bin/uvicorn
.PHONY: clean run run-local tailwind test venv
venv: $(UVICORN)
$(UVICORN): requirements.txt
python3 -m venv $(VENV)
$(VENV)/bin/pip install --upgrade pip
$(VENV)/bin/pip install -r requirements.txt
clean:
rm -rf __pycache__ app/__pycache__
run:
.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 4000 --reload
run: venv
$(UVICORN) app.main:app --host 0.0.0.0 --port 4000 --reload
run-local:
BTCDATA_URL=$(BTCDATA_LOCAL_URL) .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 4000 --reload
run-local: venv
BTCDATA_URL=$(BTCDATA_LOCAL_URL) $(UVICORN) app.main:app --host 0.0.0.0 --port 4000 --reload
tailwind:
npm run css:watch
test:
.venv/bin/python -m pytest tests/
test: venv
$(VENV)/bin/python -m pytest tests/