All Projects → wiatingpub → Mtbsystem

wiatingpub / Mtbsystem

Licence: mit
使用go-micro微服务实现的在线电影院订票系统

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Mtbsystem

Micro Starter Kit
Cloud Native GoLang Microservices - gRPC, GraphQL
Stars: ✭ 167 (-63.13%)
Mutual labels:  go-micro
micro-plugins
go-micro plugins, auth(JWT+Casbin)、go-micro服务加入istio服务网格
Stars: ✭ 27 (-94.04%)
Mutual labels:  go-micro
protoc-gen-micro
Protobuf code generation
Stars: ✭ 287 (-36.64%)
Mutual labels:  go-micro
MicroServicePractice
微服务实践的demo
Stars: ✭ 40 (-91.17%)
Mutual labels:  go-micro
gmsec
golang micro service base on gin. golang 微服务集成框架
Stars: ✭ 141 (-68.87%)
Mutual labels:  go-micro
server
game services based on micro service
Stars: ✭ 42 (-90.73%)
Mutual labels:  go-micro
Cinema
使用 go-micro 微服务框架开发的电影院订票系统
Stars: ✭ 140 (-69.09%)
Mutual labels:  go-micro
Microservices
micro 微服务实例教程,包含JWT鉴权、熔断、监控、链路追踪、健康检查、跨域等
Stars: ✭ 341 (-24.72%)
Mutual labels:  go-micro
RentHouseWeb
使用 go+docker+go-micro微服务框架开发的租房网系统,符合RESTful架构风格。
Stars: ✭ 28 (-93.82%)
Mutual labels:  go-micro
go-zipkin-demo
Laravel + go-micro + grpc + Zipkin
Stars: ✭ 65 (-85.65%)
Mutual labels:  go-micro
cookiecutter-go
boilerplate, golang project starter tool, support go-zero/go-micro/gin
Stars: ✭ 63 (-86.09%)
Mutual labels:  go-micro
micro-starter
Micro 微服务实践
Stars: ✭ 391 (-13.69%)
Mutual labels:  go-micro
short
URL shortening service. 高性能短链接服务。
Stars: ✭ 14 (-96.91%)
Mutual labels:  go-micro
Go Os
Stars: ✭ 185 (-59.16%)
Mutual labels:  go-micro
laracom
laracom driven by go micro services
Stars: ✭ 37 (-91.83%)
Mutual labels:  go-micro
Go Micro Boilerplate
The boilerplate of the GoLang application with a clear microservices architecture.
Stars: ✭ 147 (-67.55%)
Mutual labels:  go-micro
mediagui
go / vuejs / vuex powered application
Stars: ✭ 22 (-95.14%)
Mutual labels:  go-micro
Micro
go-micro 微服务实践,更多请关注Micro中国站☞
Stars: ✭ 383 (-15.45%)
Mutual labels:  go-micro
Protoc Gen Micro
Protobuf code generation for Micro. Moved to go-micro/cmd/protoc-gen-micro.
Stars: ✭ 270 (-40.4%)
Mutual labels:  go-micro
go2sky-plugins
The plugins of go2sky
Stars: ✭ 46 (-89.85%)
Mutual labels:  go-micro

采用go-micro开发的电影票在线购票系统


系列博客:


模块划分:

模块划分.png

服务划分:

服务划分.png

数据库ER图

数据库ER关系图.png

技术方案:

  • 服务端:go-micro
  • 数据库:mysql
  • 缓 存:redis
  • 前 端:el & vue
  • 服务器: centos 7 & nginx
  • 本地环境:go1.9
  • 容器:Docker
  • 进程管理:supervisor
  • 数据库备份:冷备份(rsync+mysqldump)

开发进程:

  • 1、搭建好开发框架 (get)
  • 2、数据库设计(get)
  • 3、服务端开发(get)
  • 4、前端开发(get)
  • 5、联调(get)
  • 6、优化(get)

如何启动程序:

  • 1、 ./ctrl.sh build #构建docker环境,构建完成后可以省略该步骤
  • 2、 ./ctrl.sh run #启动docker容器环境
  • 3、 ./ctrl.sh init conf #环境配置,包括数据库
  • 4、 ./ctrl.sh init chmod #权限设定
  • 5、 ./ctrl.sh start #启动容器
  • 6、 ./ctrl.sh login #登录容器
  • 7、 cd /data/deploy/mtbsystem/
  • 8、 bash ./build_local.sh api-srv #启动api服务
  • 9、 bash ./build_local.sh all #启动所有服务

如何添加服务

  • 1、 在proto下添加文件,如cms.ext.proto
  • 2、 在src下添加cms-srv
  • 3、 在dockerbase/supervisor下添加cms-srv-conf
  • 4、 ./ctrl.sh init conf
  • 5、 ./ctrl.sh login
  • 6、 cd /data/deploy/mtbsystem/
  • 7、 bash ./build_local.sh cms-rv

mysql冷备份

  • 1、 启动: bash mysql_backup.sh
  • 2、 数据恢复:gzip -d mtbsystem-xxxx.sql.gz
  • 3、 数据回复:mysql -u username -p database < 文件名

效果演示


Java源码分析、go语言应用、微服务,更多干货欢迎关注公众号:

公众号.jpg

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].