forked from paycrest/aggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 771 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
include .env
help:
@echo ''
@echo 'Usage: make [TARGET] [EXTRA_ARGUMENTS]'
@echo 'Targets:'
@echo 'make dev: make dev for development work'
@echo 'make build: make build container'
@echo 'clean: clean for all clear docker images'
dev:
docker-compose down
docker-compose up
build:
docker-compose down
docker-compose build
clean:
docker-compose down -v
psql:
psql paycrest
gen-ent:
go run -mod=mod entgo.io/ent/cmd/ent generate ./ent/schema/
run: gen-ent
air
seed:
go run scripts/seed-db/main.go
test:
go test -v ./...
start-rpc:
ganache -m "$(HD_WALLET_MNEMONIC)" --chain.chainId 1337 -l 21000000
test-coverage:
go test $(go list ./... | grep -v /ent | grep -v /config | grep -v /database | grep -v /routers) -coverprofile=coverage.out ./...