Create flutter project in frontend directory. Serve frontend web build in backend app.

This commit is contained in:
Shivering Ocelot committed 2025-05-04 21:26:03 -05:00
1 parent 2c1de4924c
commit 1e82796db1
132 files changed
+4955 -8

No files matched your search

+13 -4
View File
@@ -1,7 +1,16 @@
VENV_DIR := .venv
install:
@if [ ! -d "$(VENV_DIR)" ]; then \
python3 -m venv $(VENV_DIR); \
fi
default: install web
venv: $(VENV_DIR)
$(VENV_DIR):
python3 -m venv $@
install: venv
@$(VENV_DIR)/bin/pip install -r backend/requirements.txt
web: frontend/build/web/index.html
frontend/build/web/index.html:
cd frontend && flutter build web