Files
boc/Makefile
T
Bernt (LandveX AI) c2b10347b1 LINUS ROUND 1: Delete dead code (rust/c), generic Store[T], tests, slim main.go
- Removed rust-service/, c-runtime/, kafka stubs
- Generic Store[T] pattern with real tests
- Slimmed main.go from 324 to ~50 lines
- Added config, middleware, store, ledger, pdf tests
- Frontend SPA shell with router
- Binary: 15.5MB -> 12MB
2026-07-14 12:31:55 +00:00

46 lines
1.1 KiB
Makefile

# BOC — Business Operations Center
# Makefile
.PHONY: all build test lint clean docker-up docker-down dev help
all: build
build:
@echo "🔨 Building Go backend..."
cd backend && go build -o boc .
test:
@echo "🧪 Running Go tests..."
cd backend && go test ./... -v
lint:
@echo "🔍 Linting Go code..."
cd backend && go vet ./...
clean:
@echo "🧹 Cleaning..."
cd backend && rm -f boc
docker-up:
@echo "🐳 Starting Docker containers..."
docker-compose up -d --build
docker-down:
@echo "🐳 Stopping Docker containers..."
docker-compose down
dev:
@echo "🚀 Development mode..."
cd backend && DB_URL="postgres://boc:boc@localhost:5432/boc?sslmode=disable" JWT_SECRET="dev-secret-do-not-use" go run .
help:
@echo "BOC — Business Operations Center"
@echo ""
@echo " make build - Build Go backend"
@echo " make test - Run all tests"
@echo " make lint - Lint Go code"
@echo " make clean - Clean build artifacts"
@echo " make docker-up - Start Docker containers"
@echo " make docker-down- Stop Docker containers"
@echo " make dev - Run in development mode"