file-system/Makefile
向宁 ed47904a85 chore: initialize Kratos project skeleton, add proto config and Makefile
- Add Makefile with api/config/wire/build/run/test/clean targets
- Update buf.yaml with api, internal/conf, and third_party modules
- Update buf.gen.yaml with protobuf, grpc, and grpc-gateway plugins
- Add internal/conf/conf.proto (Kratos config schema: Bootstrap/Server/Data/Auth)
- Generate internal/conf/conf.pb.go via buf
- Add configs/config.yaml with HTTP/gRPC server, Postgres, S3, and auth settings
- Add third_party/google/api proto files (annotations, http)
- Remove old Gin-based layers: internal/api, internal/infrastructure/mediator,
  internal/middleware, internal/common, docs
- Update .gitignore to exclude server binary and bin/
2026-05-25 12:37:45 +08:00

25 lines
406 B
Makefile

.PHONY: api config wire build run test clean
api:
buf generate
config:
buf generate --path internal/conf/conf.proto --output /tmp/buf-gen/ && \
cp /tmp/buf-gen/conf.pb.go internal/conf/conf.pb.go && \
rm -rf /tmp/buf-gen/
wire:
cd cmd/server && wire
build:
go build -o ./bin/file-system ./cmd/server
run:
go run ./cmd/server -conf configs/config.yaml
test:
go test ./...
clean:
rm -rf bin/