initial commit

This commit is contained in:
2026-05-29 22:39:50 -05:00
commit 47c767f9e8
23 changed files with 3361 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
APP_NAME := scratchbox
CMD_DIR := ./cmd/pastebin
BIN_DIR := ./bin
BIN := $(BIN_DIR)/$(APP_NAME)
CONFIG ?= config.yaml
.PHONY: help run build test fmt clean
help:
@echo "Targets:"
@echo " make run - Run the server (CONFIG=$(CONFIG))"
@echo " make build - Build binary to $(BIN)"
@echo " make test - Run all Go tests"
@echo " make fmt - Format Go code"
@echo " make clean - Remove built artifacts"
run:
go run $(CMD_DIR) -config $(CONFIG)
build:
mkdir -p $(BIN_DIR)
go build -o $(BIN) $(CMD_DIR)
test:
go test ./...
fmt:
go fmt ./...
clean:
rm -rf $(BIN_DIR)