Git Product home page Git Product logo

admin-system's Introduction

1. 代码目录结构

├── cmd      # 服务程序
├── pkg      # 业务逻辑代码
    ├── api           # API接口
    ├── cache         # 验证码缓存
    ├── config        # 配置相关
    ├── controllers   # HTTP接口逻辑实现
    ├── crypto        # 加解密包
    ├── dal           # 数据访问层(数据库相关代码逻辑)                 
      ├── core          # 数据库业务代码(入口)
      ├── dao           # 对应每张表的数据库操作代码
      ├── db2go         # 自动由数据表结构生成数据模型脚本(执行gen_models.bat按提示下载db2go程序)
      └── models        # 数据库表结构定义(由db2go工具自动生成)
    ├── middleware    # 中间件(主要是JWT相关)
    ├── privilege     # casbin权限管理
    ├── proto         # 管理系统前端和后端HTTP通信协议
    ├── routers       # HTTP路由
    ├── services      # 服务代码目录
    ├── static        # 静态页面测试目录(hello.html)
    ├── storage       # 本地存储
    ├── sessions      # 用户session管理
    ├── types         # 公共常量/结构定义
    └── utils         # 工具包
├── deploy    # 部署脚本和SQL文件
├── docs      # 开发文档目录
├── static    # 静态文件目录

2. 编译运行

2.1. 物理机编译

make

2.2. docker镜像编译

make docker 

2.3. 本机运行

# --debug       打开调试模式(默认日志级别:info)
# --static      指定前端静态页面目录(不指定则默认当前路径下static目录)
./admin-system run --debug --static /opt/frontend/dist 0.0.0.0:8088

2.4. 容器运行/停止

# 启动
./run.sh
# 停止
./stop.sh

3. db2go工具安装

make db2go

admin-system's People

Watchers

 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.