Init
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
.PHONY: run build test clean help
|
||||
|
||||
# Default target
|
||||
help:
|
||||
@echo "Available commands:"
|
||||
@echo " run - Run the API server"
|
||||
@echo " build - Build the API binary"
|
||||
@echo " test - Run tests"
|
||||
@echo " clean - Clean build artifacts"
|
||||
|
||||
# Run the API server
|
||||
run:
|
||||
go run main.go
|
||||
|
||||
# Build the API binary
|
||||
build:
|
||||
go build -o bin/api main.go
|
||||
|
||||
# Run tests
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
rm -rf bin/
|
Reference in New Issue
Block a user