.PHONY: help install dev build docker-build docker-up docker-down clean help: ## Show this help message @echo "๐Ÿ‡จ๐Ÿ‡ฟ Czech Clubs Logos API - Available Commands" @echo "" @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' install: ## Install all dependencies @echo "๐Ÿ“ฆ Installing backend dependencies..." cd backend && go mod download @echo "๐Ÿ“ฆ Installing frontend dependencies..." cd frontend && npm install @echo "โœ“ All dependencies installed!" dev-backend: ## Run backend in development mode @echo "๐Ÿš€ Starting backend..." cd backend && go run . dev-frontend: ## Run frontend in development mode @echo "๐ŸŽจ Starting frontend..." cd frontend && npm run dev build-backend: ## Build backend binary @echo "๐Ÿ”จ Building backend..." cd backend && go build -o main . @echo "โœ“ Backend built successfully!" build-frontend: ## Build frontend for production @echo "๐Ÿ”จ Building frontend..." cd frontend && npm run build @echo "โœ“ Frontend built successfully!" build: build-backend build-frontend ## Build both backend and frontend docker-build: ## Build Docker images @echo "๐Ÿณ Building Docker images..." docker-compose build @echo "โœ“ Docker images built!" docker-up: ## Start services with Docker Compose @echo "๐Ÿณ Starting services..." docker-compose up -d @echo "โœ“ Services started!" @echo " Frontend: http://localhost:3000" @echo " Backend: http://localhost:8080" docker-down: ## Stop Docker services @echo "๐Ÿ›‘ Stopping services..." docker-compose down @echo "โœ“ Services stopped!" docker-logs: ## View Docker logs docker-compose logs -f clean: ## Clean build artifacts and data @echo "๐Ÿงน Cleaning..." rm -rf backend/main backend/*.db backend/logos rm -rf frontend/dist frontend/node_modules rm -rf data @echo "โœ“ Cleaned!" test-backend: ## Run backend tests @echo "๐Ÿงช Running backend tests..." cd backend && go test ./... lint-backend: ## Lint backend code @echo "๐Ÿ” Linting backend..." cd backend && golangci-lint run lint-frontend: ## Lint frontend code @echo "๐Ÿ” Linting frontend..." cd frontend && npm run lint .DEFAULT_GOAL := help