GO=go
NPX=npx

.PHONY: all backend-frontend backend-test frontend-test backend-run frontend-dev clean

all: backend-frontend

backend-frontend: backend-test frontend-test

backend-test:
	cd backend && $(GO) test -v ./tests

frontend-test:
	cd frontend && $(NPX) vitest run

backend-run:
	cd backend && $(GO) run ./cmd/backend

frontend-dev:
	cd frontend && $(NPX) vite

clean:
	cd backend && rm -rf bin
	rm -rf frontend/dist
