GithubHelp home page GithubHelp logo

davidmr001 / gmanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goflyfox/gmanager

0.0 1.0 0.0 5.99 MB

基于gf框架的管理平台,支持登录、认证、组织机构、用户、角色、菜单、日志

License: Apache License 2.0

Go 94.82% CSS 4.88% TSQL 0.28% Makefile 0.01% Shell 0.01%

gmanager's Introduction

gmanager

  • 基于gf框架的管理后台,支持登录、认证、组织机构、用户帐号、角色权限、菜单、操作日志
  • 使用gtoken组件完美支持集群部署

安装教程

代码地址

下载部署

  1. 从git下载项目: git clone https://github.com/goflyfox/gmanager
  2. 安装mysql数据库,创建db,运行deploy下gmanager.sql脚本
  3. 修改config下config.toml配置文件
# 数据库配置
[database]
    link = "root:123456@tcp(127.0.0.1:3306)/gmanager"
  1. go run main.go
  2. 访问http://localhost即可看到登录页面,账号/密码:admin/123456

服务端打包

  1. 打包可以使用gf提供的gf-cli进行打包
  2. 也可通过原始交叉编译命令

打linux环境包

SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build main.go

打本地环境包

go build main.go

前后端分离说明

  1. gmanager完全支持前后端分离,前端使用vue-admin-template
  2. 前端运行下载github代码,运行npm install&npm run dev
  3. 具体前端代码及详细部署说明见: https://github.com/goflyfox/gmanager-web
  4. 由于前后端分离和服务端模板菜单有所区别,数据库需要运行:gmanager-web.sql
  5. 如果有强迫症,使用前后端分离可以把public和template目录里面内容删除,但目录一定要保留;

功能模块

  1. 登录、认证、登出
  2. 组织机构管理
  3. 用户管理
  4. 角色管理
  5. 菜单管理
  6. 日志管理
  7. 支持登录、登出、业务增删改操作记录
  8. 支持接口调用、返回参数打印,便于问题排查

代码生成

如需代码生成,请参考java项目:https://gitee.com/jflyfox/AutoCreate

平台截图

服务端模板截图

登录: image

组织机构: image

用户管理: image

日志管理: image

前后端分离Vue截图

登录: image

组织机构: image

用户管理: image

日志管理: image

感谢

  1. gf框架 https://github.com/gogf/gf

项目支持

jflyfox

捐赠列表

gmanager's People

Contributors

zcool321 avatar

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.