-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (28 loc) · 993 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
BLUE = \033[34m
NC = \033[0m
help: ## Show help message.
@printf "Usage:\n"
@printf " make $(BLUE)<target>$(NC)\n\n"
@printf "Targets:\n"
@perl -nle'print $& if m{^[a-zA-Z0-9_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | \
sort | \
awk 'BEGIN {FS = ":.*?## "}; \
{printf "$(BLUE) %-18s$(NC) %s\n", $$1, $$2}'
install: ## Install the dependencies
./script/run.sh install
serve: generate ## Serve the application with hot reload in dev mode
./script/run.sh dev serve
generate: ## Generate the gorm queries
./script/run.sh generate
dev-up: ## Start the container for development
./script/run.sh dev start
dev-migrate: ## Run the migrations
./script/run.sh dev migrate
dev-down: ## Down the container for development
./script/run.sh dev stop
dev-teardown: ## Down the container and release all resources
./script/run.sh dev teardown
stage-up: ## Start the container for stage environment
./script/run.sh stage start --build
test: ## Run the tests
go test -v -cover ./...