Create flutter project in frontend directory. Serve frontend web build in backend app.
This commit is contained in:
1 parent
2c1de4924c
commit
1e82796db1
132 files changed
+4955
-8
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user