-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 747 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: dev build test lint migrate-up migrate-down docker-up docker-down frontend
# Local development with hot reload
dev:
docker compose -f docker-compose.dev.yml up --build
# Build production binary (requires web/dist to exist)
build:
cd web && npm run build
go build -o bin/hillscheck ./cmd/server
# Run tests with race detector
test:
go test ./... -race -count=1 -timeout=60s
# Run linter
lint:
golangci-lint run ./...
# Build frontend only
frontend:
cd web && npm install && npm run build
# Run migrations
migrate-up:
go run ./cmd/server -migrate=up
migrate-down:
go run ./cmd/server -migrate=down
# Docker
docker-up:
docker compose up --build -d
docker-down:
docker compose down
docker-logs:
docker compose logs -f app