Initial release: Disc Agenda frisbee tournament platform
Some checks failed
Build and Push / build (push) Failing after 8s
Some checks failed
Build and Push / build (push) Failing after 8s
Full-stack tournament management app with real-time scoring: - Go 1.26 backend with REST API and WebSocket live scoring - React 19 + Vite 8 frontend with mobile-first design - File-based JSON storage with JSONL audit logs - Multi-stage Docker build with Gitea CI/CD pipeline - Post-tournament questionnaire with spirit voting - Technical documentation and project description Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
42
Makefile
Normal file
42
Makefile
Normal file
@@ -0,0 +1,42 @@
|
||||
.PHONY: help dev dev-backend dev-frontend build-frontend docker image run stop logs clean tidy
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
help: ## Show this help
|
||||
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk -F ':.*## ' '{printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
dev: ## Print instructions for local development
|
||||
@echo "Start backend and frontend in separate terminals:"
|
||||
@echo " make dev-backend"
|
||||
@echo " make dev-frontend"
|
||||
|
||||
tidy: ## Run go mod tidy (requires Go 1.26+)
|
||||
cd backend && go mod tidy
|
||||
|
||||
dev-backend: tidy ## Run backend dev server (requires Go 1.26+)
|
||||
cd backend && go run ./cmd/server -data ../data -static ../frontend/dist -port 8080
|
||||
|
||||
dev-frontend: ## Run frontend dev server (requires Node 22+)
|
||||
cd frontend && npm run dev
|
||||
|
||||
build-frontend: ## Build frontend for production
|
||||
cd frontend && npm ci && npx vite build
|
||||
|
||||
docker: ## Build Docker images
|
||||
docker compose build
|
||||
|
||||
image: ## Build production Docker image
|
||||
docker build -t fujarna-claude:latest .
|
||||
|
||||
run: ## Start Docker containers
|
||||
docker compose up -d
|
||||
|
||||
stop: ## Stop Docker containers
|
||||
docker compose down
|
||||
|
||||
logs: ## Follow Docker container logs
|
||||
docker compose logs -f
|
||||
|
||||
clean: ## Remove build artifacts and node_modules
|
||||
rm -rf frontend/dist frontend/node_modules
|
||||
cd backend && go clean
|
||||
Reference in New Issue
Block a user