rentease/Makefile
2024-02-04 12:48:43 +01:00

20 lines
438 B
Makefile

NAME=rentease
PORT=8000
DB_USER=ruidy
DB_NAME=villafleurie
build: templ
@docker build -t ${NAME}:latest .
run: build
@docker run -p ${PORT}:${PORT} -e DATABASE_URL="host=docker.for.mac.host.internal user=${DB_USER} database=${DB_NAME}" -e PORT=${PORT} ${NAME}
dev: templ
@air cmd/main.go
templ: lint
@templ generate
format:
@templ fmt .
@go fmt ./...
lint: format
@golangci-lint run ./...
.PHONY: build run dev templ format lint