set shell := ["zsh", "-cu"]

default:
	@just --list

run:
	go run ./cmd/server

migrate:
	go run ./cmd/migrate

build:
	mkdir -p .bin
	go build -o .bin/update-server ./cmd/server

test:
	go test ./...

fmt:
	gofmt -w ./cmd ./internal

tidy:
	go mod tidy

check: fmt test build
