-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.17 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
install: reqs-fe
uv sync --dev
format:
uv run isort .
uv run black .
mypy:
uv run mypy app/
lint:
uv run pylint app/
hash-password:
@uv run python scripts/hash_password.py
generate-secret:
@uv run python scripts/generate_secret_key.py
run:
SECRET_KEY="dummy_secret" \
MASTER_PASSWORD_HASH="JDJiJDEyJHgvYVd6RkJyTU01QlZCQy9wMS9CNk9lLlpXU09YRDF1QVBPaTNDY09VWjl6bUhERlcuM3Nx" \
ALLOWED_ORIGINS="*" \
uv run python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
up: build-frontend
docker compose up --build
reqs-fe-ci:
cd frontend && pnpm install
build-frontend-ci:
cd frontend && pnpm build
rm -rf app/assets/*
rm -f app/templates/index.html
cp -r frontend/dist/assets/* app/assets/
cp frontend/dist/index.html app/templates/
reqs-fe:
export NVM_DIR="$$HOME/.nvm" && \
[ -s "$$NVM_DIR/nvm.sh" ] && . "$$NVM_DIR/nvm.sh" && \
cd frontend && \
nvm use && \
pnpm install
build-frontend:
export NVM_DIR="$$HOME/.nvm" && \
[ -s "$$NVM_DIR/nvm.sh" ] && . "$$NVM_DIR/nvm.sh" && \
cd frontend && \
nvm use && \
pnpm build
rm -rf app/assets/*
rm -f app/templates/index.html
cp -r frontend/dist/assets/* app/assets/
cp frontend/dist/index.html app/templates/