zengxianxue / Cinema
Licence: mit
使用 go-micro 微服务框架开发的电影院订票系统
Stars: ✭ 140
Labels
Projects that are alternatives of or similar to Cinema
cookiecutter-go
boilerplate, golang project starter tool, support go-zero/go-micro/gin
Stars: ✭ 63 (-55%)
Mutual labels: gin, go-micro
Go Micro Boilerplate
The boilerplate of the GoLang application with a clear microservices architecture.
Stars: ✭ 147 (+5%)
Mutual labels: microservice, go-micro
S
a go web freamwork for micro service, very very easy to create and deploy, with auto service registry and discover, high performance and based on http/2 no ssl
Stars: ✭ 67 (-52.14%)
Mutual labels: microservice, go-micro
gmsec
golang micro service base on gin. golang 微服务集成框架
Stars: ✭ 141 (+0.71%)
Mutual labels: gin, go-micro
laracom
laracom driven by go micro services
Stars: ✭ 37 (-73.57%)
Mutual labels: microservice, go-micro
Go Project Sample
Introduce the best practice experience of Go project with a complete project example.通过一个完整的项目示例介绍Go语言项目的最佳实践经验.
Stars: ✭ 344 (+145.71%)
Mutual labels: microservice, gin
Go Shopping
A sample suite of services built on the go-micro framework
Stars: ✭ 98 (-30%)
Mutual labels: microservice, go-micro
Paysuper Billing Server
A core monolith-like service with all payment processing business logic in PaySuper.
Stars: ✭ 95 (-32.14%)
Mutual labels: microservice, go-micro
Mix
☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、WorkerMan、FPM、CLI-Server
Stars: ✭ 1,753 (+1152.14%)
Mutual labels: microservice
Go Plugins
Go Micro Plugins. Moved to go-micro/plugins.
Stars: ✭ 1,654 (+1081.43%)
Mutual labels: go-micro
Go Http Metrics
Go modular http middleware to measure HTTP requests independent of metrics backend (with Prometheus and OpenCensus as backend implementations) and http framework/library
Stars: ✭ 128 (-8.57%)
Mutual labels: gin
Micro Medium Api
Microservice for fetching the latest posts of Medium with GraphQL.
Stars: ✭ 138 (-1.43%)
Mutual labels: microservice
Cinema - 电影院订票管理
使用 go-micro
开发的微服务电影院订票管理案例
目录结构:
-
api - RESTful API 接口,使用
gin
框架 - movie - 电影管理服务
-
proto -
grpc
协议文件目录 - projection - 电影票管理服务
- user - 用户管理服务
特性
- 微服务框架: go-micro 微服务的基础框架
- 服务注册/发现:consul 分布式、高可用的服务注册/发现
- 消息中间件:kafka 发布/订阅、异步通知
- api网关:gin Api统一管理、鉴权
- JWT鉴权:jwt-go - JSON Web Token
-
api文档:
swagger
api 文档 - rpc协议:grpc-go 服务间的通信协议
- 错误报告:sentry 警报系统
-
缓存:
redis
缓存客户端使用go-redis -
DB:
Mongodb
客户端使用mongo-go-driver - 部署:docker-compose 部署
依赖
运行
-
clone
项目
git clone https://github.com/zengxianxue/cinema.git
- 安装依赖包
cd cinema
GO111MODULE=on go mod tidy
- build
目前只有user
和API
两个模块
make build
- compose 启动
docker-compose up
- 测试
curl -X POST -d "username=test&password=123456" http://localhost:8080/api/v1/user/registry
输出: {"code":0,"message":"success"}
其他说明
还在开发中... 欢迎 PR,喜欢加个星星哦,>_<
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].