-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 804 Bytes
/
Makefile
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
40
# ==============================================================================
# Tools commands
run-linter:
echo "Starting linters"
golangci-lint run ./app
swaggo:
echo "Starting swagger generating"
swag init -g **/**/*.go
# ==============================================================================
# Main
build:
go build main .
run: build
go run main
test:
go test -cover ./...
# ==============================================================================
# Docker
up:
echo "Starting local environment"
docker-compose -f docker-compose.local.yml up --build -d
down:
echo "Removing local environment"
docker-compose -f docker-compose.local.yml down -v
logs:
echo "Starting local environment"
docker-compose -f docker-compose.local.yml logs -f
dev:
make up && make logs