-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 780 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 780 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
.PHONY: generate build test run dev clean
# Generate API code from OpenAPI spec
generate:
@echo "Generating Go server code..."
oapi-codegen -config api/oapi-codegen.yaml api/openapi.yaml
@echo "Done."
# Build the application
build: generate
@echo "Building..."
cd web/ui && npm ci && npm run build
go build -o bulk-file-loader .
@echo "Done."
# Run tests
test:
go test -v ./...
# Run the application
run:
go run .
# Start development environment
dev:
docker compose -f docker-compose.dev.yml up --build
# Clean build artifacts
clean:
rm -rf bulk-file-loader tmp/ data/*.db web/ui/dist/ web/ui/node_modules/
# Install development tools
tools:
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
go install github.com/air-verse/air@latest