Add admin UI
Some checks failed
CI / Test (pull_request) Failing after 1m33s
CI / Lint (pull_request) Failing after 13s
CI / Build (pull_request) Has been skipped
CI / Security Scan (pull_request) Failing after 4m47s
CI / Build and Push Docker Image (pull_request) Has been skipped

This commit is contained in:
2026-03-05 23:08:34 +00:00
parent 667217e66b
commit 7025ec746c
31 changed files with 5905 additions and 3 deletions

View File

@@ -27,11 +27,27 @@ help: ## Show this help message
@echo "Targets:"
@awk 'BEGIN {FS = ":.*##"; printf "\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-20s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
# Frontend targets
frontend-install: ## Install frontend dependencies
@echo "Installing frontend dependencies..."
cd frontend/admin && npm install
frontend-build: ## Build frontend
@echo "Building frontend..."
cd frontend/admin && npm run build
rm -rf internal/admin/dist
cp -r frontend/admin/dist internal/admin/
frontend-dev: ## Run frontend dev server
cd frontend/admin && npm run dev
# Development targets
build: ## Build the binary
@echo "Building $(APP_NAME)..."
CGO_ENABLED=1 $(GOBUILD) -o $(BUILD_DIR)/$(APP_NAME) ./cmd/gateway
build-all: frontend-build build ## Build frontend and backend
build-static: ## Build static binary
@echo "Building static binary..."
CGO_ENABLED=1 $(GOBUILD) -ldflags='-w -s -extldflags "-static"' -a -installsuffix cgo -o $(BUILD_DIR)/$(APP_NAME) ./cmd/gateway
@@ -61,6 +77,8 @@ tidy: ## Tidy go modules
clean: ## Clean build artifacts
@echo "Cleaning..."
rm -rf $(BUILD_DIR)
rm -rf internal/admin/dist
rm -rf frontend/admin/dist
rm -f coverage.out coverage.html
# Docker targets