2024-05-17 22:34:55 +00:00
|
|
|
generate:
|
|
|
|
rm -rf proto
|
|
|
|
mkdir -p proto
|
2024-05-21 20:46:56 +00:00
|
|
|
protoc \
|
|
|
|
-I ./api \
|
|
|
|
-I ./third_party \
|
2024-05-17 22:34:55 +00:00
|
|
|
--go_out ./proto --go_opt paths=source_relative \
|
|
|
|
--go-grpc_out ./proto --go-grpc_opt paths=source_relative \
|
|
|
|
--grpc-gateway_out ./proto --grpc-gateway_opt paths=source_relative \
|
2024-05-21 21:13:01 +00:00
|
|
|
--openapiv2_out=./resources \
|
2024-05-17 22:34:55 +00:00
|
|
|
./api/main.proto
|
2024-05-18 06:16:57 +00:00
|
|
|
|
|
|
|
run:
|
|
|
|
go run ./cmd/cake_crm/main.go
|
2024-05-19 12:10:02 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
go build -o bin/cake_crm cmd/cake_crm/main.go
|