本地体验

本地体验

本机需要 Go、MySQL、Redis,以及 Node(pnpm)。演示库名 light_gozero。

git clone git@github.com:jiangfolio/light-gozero.git
cd light-gozero
git submodule update --init --recursive

# 管理端
make init-sql          # 导入库表与种子数据(默认 docker 容器名 mysql)
make run-system        # 后端  :8888
make web-dev           # 管理端 :8081

# 门户端(另开终端)
make run-portal        # 门户后端 :8890
make portal-web-dev    # 门户前端 :8082

仓库内密钥仅供本地演示。更多命令见 make help。

CI:推送 / PR 自动扫描与测试,见 .github/workflows/ci.yml。

新增接口:改 .api → goctl 生成 → 在 logic 写业务。约定见 .cursorrules。主配置:service/system/api/etc/system.yaml。

更新日期:2026/12/06编辑此页