1 Star 0 Fork 47

micro team group / MTBSystem

forked from 稀饭下雪 / MTBSystem 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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


毕设项目(2017-12-01 ~ 2018-03-09)

模块划分:

模块划分.png

服务划分:

服务划分.png

数据库ER图

数据库ER关系图.png

项目相关的微服务博客

https://juejin.im/user/58ae3e458fd9c50063c0209f/activities

技术方案:

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

开发进程:

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

如何启动程序:

  • 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 < 文件名

效果演示

MIT License Copyright (c) 2017 xifan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

go微服务项目 使用go-micro微服务实现的在线电影院订票系统 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/nickeyet/MTBSystem.git
git@gitee.com:nickeyet/MTBSystem.git
nickeyet
MTBSystem
MTBSystem
master

搜索帮助

14c37bed 8189591 565d56ea 8189591