-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 1.21 KB
/
Makefile
File metadata and controls
52 lines (42 loc) · 1.21 KB
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
49
50
51
52
default:
make down
make gen
make up
up:
cd infra && docker compose up --build -d
down:
cd infra && docker compose --profile loadtest down
rm -rf testnet-home
init:
cometbft init --home ./cmt-home
init-testnet:
cometbft testnet --n=3 --v=4 --config ./infra/config_template.toml --o=./testnet-home --starting-ip-address 192.167.10.2
gen:
cd core/db && sqlc generate
protoc --go_out=./protocol --go-grpc_out=./protocol ./protocol/protocol.proto
go run github.com/99designs/gqlgen generate
go run github.com/Khan/genqlient
make init-testnet
go mod tidy
deps:
brew install protobuf
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install github.com/cometbft/cometbft/cmd/cometbft@v0.38.9
lt:
@if [ "$(shell docker ps -q -f name=moshpit)" ]; then \
docker stop moshpit; \
fi
@if [ "$(shell docker ps -a -q -f name=moshpit)" ]; then \
docker rm moshpit; \
fi
cd infra && docker compose --profile loadtest up --build -d --no-recreate
open http://localhost:8080/
mosh:
docker start moshpit
open http://localhost:8080/
chill:
docker stop moshpit
test:
go test -count=1 ./...