Files
creator/Makefile
2026-06-05 19:54:34 +02:00

27 lines
560 B
Makefile

.PHONY: install dev prod stop logs
COMPOSE = docker compose
install:
pip install --break-system-packages -r backend/requirements.txt
cd frontend && npm install
dev:
@echo "Backend: http://localhost:8000"
@echo "Frontend: http://localhost:5173"
@cd backend && uvicorn main:app --reload --port 8000 &
@cd frontend && npx vite --port 5173
prod:
@touch creator.db
$(COMPOSE) up -d --build
stop:
-@pkill -f "uvicorn main:app" 2>/dev/null
-@pkill -f "vite --port 5173" 2>/dev/null
$(COMPOSE) down
@echo "Server gestoppt."
logs:
$(COMPOSE) logs -f