Files
tenant-registry/Makefile
T
sharang af9f331781
ci / shared (push) Successful in 4s
ci / test (push) Successful in 11s
ci / image (push) Has been skipped
feat(server): tenant-registry skeleton boots against dev stack
Minimal Go service: /healthz + /v1/tenants/by-slug/:slug + /v1/tenants/:id with an in-memory store seeded with the acme tenant. Stdlib-only; pgx + JWT validation land in M4.1 follow-up.
2026-05-19 09:35:04 +00:00

42 lines
895 B
Makefile

# tenant-registry — Go service for tenant glue, audit, API keys.
.PHONY: help dev test build fmt vet lint docker clean
ADDR ?= :8080
APP_ENV ?= dev
help:
@echo "tenant-registry targets:"
@echo " make dev go run ./cmd/server (foreground, APP_ENV=dev)"
@echo " make test go test -race ./..."
@echo " make build compile binary to ./bin/tenant-registry"
@echo " make fmt go fmt ./..."
@echo " make vet go vet ./..."
@echo " make docker build local image (tenant-registry:dev)"
dev:
@APP_ENV=$(APP_ENV) ADDR=$(ADDR) go run ./cmd/server
test:
@go test -race ./...
build:
@mkdir -p bin
@CGO_ENABLED=0 go build -o bin/tenant-registry ./cmd/server
@echo "built ./bin/tenant-registry"
fmt:
@gofmt -w .
@test -z "$$(gofmt -l .)"
vet:
@go vet ./...
lint: fmt vet
docker:
@docker build -t tenant-registry:dev .
clean:
@rm -rf bin