-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.bat
More file actions
56 lines (46 loc) · 1.19 KB
/
Makefile.bat
File metadata and controls
56 lines (46 loc) · 1.19 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
56
@echo off
REM MedXpert - Common Commands
if "%1"=="help" goto help
if "%1"=="install" goto install
if "%1"=="test" goto test
if "%1"=="clean" goto clean
if "%1"=="run-api" goto run-api
if "%1"=="run-app" goto run-app
if "%1"=="docker-up" goto docker-up
if "%1"=="docker-down" goto docker-down
goto help
:help
echo Available commands:
echo Makefile.bat install - Install dependencies
echo Makefile.bat test - Run tests
echo Makefile.bat clean - Clean cache files
echo Makefile.bat run-api - Run API locally
echo Makefile.bat run-app - Run Streamlit locally
echo Makefile.bat docker-up - Start Docker containers
echo Makefile.bat docker-down - Stop Docker containers
goto end
:install
pip install -r requirements.txt
goto end
:test
cd tests && pytest
goto end
:clean
for /d /r . %d in (__pycache__) do @if exist "%d" rd /s /q "%d"
del /s /q *.pyc 2>nul
for /d /r . %d in (.pytest_cache) do @if exist "%d" rd /s /q "%d"
if exist htmlcov rd /s /q htmlcov
goto end
:run-api
uvicorn src.api:app --reload --host 0.0.0.0 --port 8000
goto end
:run-app
streamlit run src/app.py
goto end
:docker-up
docker-compose up -d
goto end
:docker-down
docker-compose down
goto end
:end