/moment-service

moment service, include post, comment, reply, like feature.

Primary LanguageGoMIT LicenseMIT

moment-service

Features

  • post
  • comment
  • like

Layer

The application with the following layers:

    1. gRPC Layer: Responsible for handling incoming gRPC requests and returning responses.
    1. Service Layer: Responsible for handling business logic and communicating with the data layer.
    1. Data Layer: Responsible for handling communication with the database or nosql or other external service.

Run

# 运行
make run

Develop

如果中间有修改 proto 文件,需要重新生成 *.pb.go*_grpc.pb.go

# 生成 *.pb.go
make proto

# 生成 *_grpc.pb.go
make grpc

# 生成文档 在 api/index.html 可以直接浏览器查看
make doc

make run

Reference