Giter Site home page Giter Site logo

mtbsystem's Introduction

采用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

mtbsystem's People

Contributors

wiatingpub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.