Skip to content

Commit 9dade5d

Browse files
committed
feat: add makefile
1 parent 6399b0e commit 9dade5d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.PHONY: install run-api run-streamlit format test docker-build-api docker-build-streamlit
2+
3+
install:
4+
pip3 install -r api/requirements.txt
5+
pip3 install -r app/requirements.txt
6+
pip3 install -r requirements-dev.txt
7+
8+
run-api:
9+
fastapi dev api/server.py
10+
11+
run-streamlit:
12+
streamlit run app/streamlit_app.py
13+
14+
format:
15+
black .
16+
17+
test:
18+
pytest
19+
20+
docker-build:
21+
docker build -t fastapi-base:latest -f api/Dockerfile .
22+
docker build -t streamlit-base:latest -f app/Dockerfile .
23+
24+
all: install format docker-build test

0 commit comments

Comments
 (0)