- post
- comment
- like
The application with the following layers:
-
- gRPC Layer: Responsible for handling incoming gRPC requests and returning responses.
-
- Service Layer: Responsible for handling business logic and communicating with the data layer.
-
- Data Layer: Responsible for handling communication with the database or nosql or other external service.
# 运行
make run
如果中间有修改 proto 文件,需要重新生成 *.pb.go
和 *_grpc.pb.go
# 生成 *.pb.go
make proto
# 生成 *_grpc.pb.go
make grpc
# 生成文档 在 api/index.html 可以直接浏览器查看
make doc
make run
- https://medium.com/@leoantony102/how-i-made-twitter-back-end-57addbaa14f5
- https://mp.weixin.qq.com/s/ov1UPkhjIti0QuHdxm2t9Q
- https://dsysd-dev.medium.com/stop-using-dtos-in-go-its-not-java-96ef4794481a
- https://github.com/0voice/from_coder_to_expert/blob/master/%E5%BE%AE%E5%8D%9A.%E5%A4%A7%E6%95%B0%E6%8D%AE%E6%97%B6%E4%BB%A3feed%E6%9E%B6%E6%9E%84_TimYang_ArchSummit_Beijing_2014.pdf