casbin-hub

所属分类:WEB开发
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-09-08 05:57:46
上 传 者sh-1993
说明:  Casbin的中心,
(The hub for Casbin,)

文件列表:
LICENSE (11357, 2023-09-07)
conf/ (0, 2023-09-07)
conf/app.conf (267, 2023-09-07)
controllers/ (0, 2023-09-07)
controllers/account.go (6139, 2023-09-07)
controllers/adapter.go (3520, 2023-09-07)
controllers/default.go (335, 2023-09-07)
controllers/enforcer.go (1129, 2023-09-07)
controllers/model.go (1056, 2023-09-07)
controllers/policy_list.go (922, 2023-09-07)
controllers/type.go (1214, 2023-09-07)
go.mod (362, 2023-09-07)
go.sum (19915, 2023-09-07)
main.go (1277, 2023-09-07)
object/ (0, 2023-09-07)
object/adapter.go (1647, 2023-09-07)
object/enforcer.go (1569, 2023-09-07)
object/model.go (1406, 2023-09-07)
object/orm_manager.go (1863, 2023-09-07)
object/policy.go (3615, 2023-09-07)
object/policy_list.go (1726, 2023-09-07)
object/user.go (2429, 2023-09-07)
routers/ (0, 2023-09-07)
routers/filter.go (531, 2023-09-07)
routers/router.go (2406, 2023-09-07)
util/ (0, 2023-09-07)
util/log.go (801, 2023-09-07)
util/path.go (169, 2023-09-07)
web/ (0, 2023-09-07)
web/.eslintrc.js (144, 2023-09-07)
web/.prettierrc.js (118, 2023-09-07)
web/package.json (1136, 2023-09-07)
web/public/ (0, 2023-09-07)
web/public/favicon.ico (16958, 2023-09-07)
... ...

Casbin-Hub ==== Casbin-Hub is the official web UI (admin portal) for Casbin models and policies. A security administrator can use it to view & edit Casbin models and policy rules. ## Demo https://hub.casbin.com ## Architecture Casbin-Hub contains 2 parts: | Name | Description | Language | Source code | |----------|------------------------------------------|---------------------------------|------------------------------------------------------------| | Frontend | Web frontend UI for Casbin-Hub | Javascript + React + Ant Design | https://github.com/casbin/casbin-hub/tree/master/web | | Backend | RESTful API backend for Casbin-Hub | Golang + Beego + MySQL | https://github.com/casbin/casbin-hub | ## Installation - Get the code: ```shell go get github.com/casbin/casbin-hub ``` - Setup database: Casbin-Hub will store its metadata in a MySQL database named: `casbin_metadata`, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/casbin-hub/blob/master/conf/app.conf - Setup Casbin-Hub to enable some third-party login platform Casbin-forum provide a way to sign up using Github account, so you may have to get your own `GithubAuthClientID`, `GithubAuthClientSecret` first. You could get them by clicking on this url: https://github.com/settings/developers , You should set `Homepage URL` to fit your own domain address, for local testing, set`http://localhost:3000`. And set the Authorization callback URL, the same domain address as `Homepage URL`, for local testing, set`http://localhost:3000`. - Modified config files: Change your own `GithubAuthClientID`, `GithubAuthClientSecret` in conf/app.conf, web/src/conf.js. ```ini dataSourceName = root:123@tcp(localhost:3306)/ ``` Casbin-Hub uses XORM to connect to DB, so all DBs supported by XORM can also be used. - Run backend (in port 8800): ``` go run main.go ``` - Run frontend (in the same machine's port 3030): ``` cd web npm install npm start ``` - Open browser: http://localhost:3030/

近期下载者

相关文件


收藏者