-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (29 loc) · 851 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
include .env
init:
@echo "== 👩🌾 init =="
brew install pre-commit
brew install golangci-lint
brew upgrade golangci-lint
@echo "== pre-commit setup =="
pre-commit install
precommit.rehooks:
pre-commit autoupdate
pre-commit install --install-hooks
pre-commit install --hook-type commit-msg
ci.lint:
@echo "== 🙆 ci.linter =="
golangci-lint run -v ./... --fix
run-dev:
docker compose up -d
stop:
docker compose stop
down:
docker compose down
exec:
docker exec -it go_scratch_postgres bin/bash
goose-up:
cd sql/schema && goose postgres "postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@localhost:5432/$(DATABASE_NAME)?sslmode=disable" up
goose-down:
cd sql/schema && goose postgres "postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@localhost:5432/$(DATABASE_NAME)?sslmode=disable" down
sqlc-gen:
sqlc generate