go-admin-panel

command module
v0.0.0-...-066ace4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 6 Imported by: 0

README

项目结构

  • config 环境配置文件、系统配置表。
  • core 通用的公共文件。
  • logs 系统启动时zap日志系统生成的日志文件。
  • misc 系统必要的一些杂项配置文件,例如:db脚本、文档、程序启动脚本。
  • module 模块功能,目前admin放系统权限管理代码。
  • publish 发布目录。
  • resources 静态资源目录。UI资源和功能html引擎模块。

调试&配置

  • 请确认本机已安装go 1.13+版本。
  • 打开goland,File->Settings->Go->Go Modules(vgo),勾选Enable Go Modules(vgo) integration,设置Proxyhttps://goproxy.cn
  • main.go默认读取config/env/local/admin.json配置文件。请确认端口可用,mysql结点的数据库、帐号和密码正确。
  • 如需自定义配置,请在config/env创建自己的环境目录。并且在Debug Configurations/Program arguments设置-env=xxx
  • 创建数据库表结构。执行module/admin/admin_test.go中的TestAdminDBMigrate()函数即可创建表结构,或手工导入misc/db_script/go_admin_panel.sql文件。

模板引擎

  • UI框架使用的是layui,说明文档请访问 https://www.layui.com/doc/
  • html模板引擎使用的是golang系统自带的template。请搜索golang template查询查关语法。

路由规划

  • TODO

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL