Coder Social home page Coder Social logo

cinema-shop's Introduction

cinema-shop

基于 go-zero 开发的影票售卖系统

目录结构

├── apidoc // 包含postman文件
├── common // 公共方法
├── services // 服务
│   ├── cinema // 影片影院相关服务
│   ├── order //订单服务
│   ├── usercenter // 用户服务
│   └── queue // 队列服务
└── seed // 数据填充

开发工具的使用

使用make工具解决每次生成代码运行实例时需要输入很多参数的问题

开发环境 Win10,安装make工具使用 Chocolatey包管理工具安装

以写Order服务为例

生成api文件
make order-new-api

生成api代码
make order-gen-api

运行代码
make order-run-api

生成model文件[example:生成order服务中的order表model]
make order-gen-model-order

一键启动

安装modd工具

go install github.com/cortesi/modd/cmd/modd

执行命令

modd

功能模块:

  • ✅ 用户中心

  • ✅ 影片相关服务

  • ✅ 订单服务

  • 🔲 支付中心

可能用到的

mysql redis etcd rebbitmq

数据表设计

order

cinema

cinema-shop's People

Contributors

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