-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (32 loc) · 890 Bytes
/
Makefile
File metadata and controls
48 lines (32 loc) · 890 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
40
41
42
43
44
45
46
47
48
include .env
run:
go run main.go
test:
go test -v ./...
mod-vendor:
go mod vendor
golangci-lint:
@golangci-lint run
gosec:
@gosec -quiet ./...
validate: golangci-lint gosec
docker:
docker-compose build
docker-compose up
migrate-create:
@goose -dir=migrations create "$(name)" sql
migrate-up:
@goose -dir=migrations postgres "host=${POSTGRES_HOST} user=${POSTGRES_USER} password=${POSTGRES_PASSWORD} dbname=${POSTGRES_DB} sslmode=disable" up
migrate-down:
@goose -dir=migrations postgres "host=${POSTGRES_HOST} user=${POSTGRES_USER} password=${POSTGRES_PASSWORD} dbname=${POSTGRES_DB} sslmode=disable" down
swagger: swag redocly swag-fmt
swag:
swag init -g main.go
redocly:
redocly build-docs docs/swagger.yaml -o docs/index.html
install-swagger:
go install github.com/swaggo/swag/cmd/swag@latest
get-swagdeps:
go get github.com/swaggo/swag
swag-fmt:
swag fmt