This commit is contained in:
Team3
2026-06-05 19:54:34 +02:00
commit 3ed5f7c3e5
18 changed files with 2670 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
.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