使用 go-micro 微服务框架开发的电影院订票系统
使用 go-micro
开发的微服务电影院订票管理案例
目录结构:
gin
框架grpc
协议文件目录swagger
api 文档redis
缓存客户端使用go-redis
Mongodb
客户端使用mongo-go-driver
clone
项目git clone https://github.com/zengxianxue/cinema.git
cd cinema
GO111MODULE=on go mod tidy
目前只有user
和API
两个模块
make build
docker-compose up
curl -X POST -d "username=test&password=123456" http://localhost:8080/api/v1/user/registry
输出: {"code":0,"message":"success"}
还在开发中... 欢迎 PR,喜欢加个星星哦,>_<