backend-service/Makefile
ats-tech25 155d4f78ac chore(makefile): Streamline Docker and development commands
- Remove extensive Docker-related commands from Makefile
- Simplify project configuration and maintenance scripts
- Reduce complexity of Docker command management
- Improve overall Makefile readability and maintainability
2025-11-07 20:31:05 +00:00

58 lines
818 B
Makefile

.PHONY: build run test clean deps server cli
# Build the server binary
build:
go build -o bin/server cmd/server/main.go
# Build the CLI binary
build-cli:
go build -o bin/cli cmd/cli/main.go
# Run the server
run:
go run cmd/server/main.go
# Run the CLI
cli:
go run cmd/cli/main.go
# Install dependencies
deps:
go mod tidy
go mod download
# Run tests
test:
go test ./...
# Clean build artifacts
clean:
rm -rf bin/
# Format code
fmt:
go fmt ./...
# Vet code
vet:
go vet ./...
# Run linter (requires golangci-lint)
lint:
golangci-lint run
# Database operations
db-migrate: build-cli
./bin/cli migrate
db-health: build-cli
./bin/cli db health
db-seed: build-cli
./bin/cli db seed
# Development setup
dev-setup: deps
cp .env.example .env
@echo "Please update .env file with your configuration"