-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (30 loc) · 949 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
41
42
43
44
45
local.run:
go run ./app/main.go
download.deps:
go mod download
docker.rebuild:
docker compose up -d --build app
docker.run:
docker compose up -d
docker.run.db:
docker compose up -d postgres
docker.run.migrate:
docker compose uo -d migrate
docker.down:
docker compose down
migrate.up:
migrate -path ./migrations -database "postgres://yks:yksadm@localhost:5432/postgres?sslmode=disable" up
migrate.down:
migrate -path ./migrations -database "postgres://yks:yksadm@localhost:5432/postgres?sslmode=disable" down
mock.gen.gateway:
mockgen -source=internal/gateway/gateway.go \
-destination=internal/gateway/mock/mock_gateway.go
mock.gen.service:
mockgen -source=internal/service/command.go \
-destination=internal/service/mock/mock_executor.go
mockgen -source=internal/service/service.go \
-destination=internal/service/mock/mock_service.go
tests.run:
go test ./internal/...
tests.cover:
go test -cover ./internal/...