Made Production Ready

This commit is contained in:
2025-05-22 23:51:27 -04:00
parent 40d1fa64b8
commit 91ab19fc02
6 changed files with 125 additions and 58 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
BINARY_NAME=todo
INSTALL_PATH=/usr/local/bin
.PHONY: build
build:
go build -o $(BINARY_NAME) ./cmd/todo
.PHONY: install
install: build
mkdir -p $(INSTALL_PATH)
cp $(BINARY_NAME) $(INSTALL_PATH)/$(BINARY_NAME)
.PHONY: uninstall
uninstall:
rm -f $(INSTALL_PATH)/$(BINARY_NAME)
.PHONY: clean
clean:
rm -f $(BINARY_NAME)
.PHONY: test
test:
go test -v ./...