This commit is contained in:
2025-11-03 12:24:01 +02:00
commit 0806865287
177 changed files with 18453 additions and 0 deletions

41
server/Makefile Normal file
View File

@@ -0,0 +1,41 @@
.PHONY: build run test docker-build docker-run dev clean fmt lint vet staticcheck install-lint
APP_NAME=go-server
build:
mkdir -p bin
go build -o bin/app cmd/api/main.go
run:
go run cmd/api/main.go
test:
go test -v ./...
docker-build:
docker build -t $(APP_NAME) .
docker-run:
docker compose up -d
dev:
air
clean:
rm -rf bin/ tmp/
fmt:
go fmt ./...
lint:
golangci-lint run ./...
vet:
go vet ./...
staticcheck:
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
install-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest