Code Monkey home page Code Monkey logo

ginadmin's Introduction

ginadmin

fork from github.com/it234/goapp
基于 Gin + GORM + Casbin + vue-element-admin 实现的权限管理系统
基于Casbin 实现RBAC权限管理
前端实现: vue-element-admin
在线体验:http://35.241.100.145:5315

特性

  • 基于 Casbin 的 RBAC 访问控制模型
  • JWT 认证
  • 前后端分离

下载并运行

获取代码

git clone https://github.com/helight/ginadmin

运行

  • 运行服务端:cd main; make; ./admin,运行成功后打开 127.0.0.1:8080,如果是在windows下操作,需要提前安装并配置好mingw(sqlite的操作库用到),安装方式请自行百度/谷歌。
  • 调试/运行web:cd website/manageweb,npm install,npm run dev
  • 配置文件在(main/config.yaml)中,用户默认为:admin/123456

温馨提醒

  1. 默认配置采用的是 sqlite 数据库,数据库文件(自动生成)在main/data/goapp.db。如果想切换为mysqlpostgres,请更改配置文件,并创建数据库(表会自动创建)。
  2. 日志的配置为标准输出并写入文件。

前端实现

项目结构概览

展开查看
.
├── main  项目的主要应用
├── main/pkg  外部应用程序可以使用的库代码
├── vendor  项目依赖的其他第三方库
├── website  vue-element-admin

界面截图

展开查看
.










感谢以下框架的开源支持

MIT License

Copyright (c) 2019 it234

ginadmin's People

Contributors

dependabot[bot] avatar helight avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

ljrcore

ginadmin's Issues

报错sqlite相关的好像

github.com/mattn/go-sqlite3

sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:123303:10: warning: function may return address of local variable [-Wreturn-local-addr]
123303 | return pNew;
| ^~~~
sqlite3-binding.c:123263:10: note: declared here
123263 | Select standin;
| ^~~~~~~
panic: Error 1045: Access denied for user 'root'@'_gateway' (using password: YES)

goroutine 1 [running]:
ginadmin/models.InitDB(0xc000412100)
/run/media/edison/fd228aaf-b146-4563-aedf-13b3e5f48f201/test_object/ginadmin/admin/models/base.go:26 +0x471
main.initDB(0xc1e43c?)
/run/media/edison/fd228aaf-b146-4563-aedf-13b3e5f48f201/test_object/ginadmin/admin/main.go:39 +0x19
main.Run({0x0?, 0xc0000021a0?})
/run/media/edison/fd228aaf-b146-4563-aedf-13b3e5f48f201/test_object/ginadmin/admin/main.go:32 +0x75
main.main()
/run/media/edison/fd228aaf-b146-4563-aedf-13b3e5f48f201/test_object/ginadmin/admin/main.go:71 +0x1d
exit status 2

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.