{"id":13679377,"url":"https://github.com/casbin/casbin-hub","last_synced_at":"2025-04-22T09:32:19.916Z","repository":{"id":38823470,"uuid":"229221734","full_name":"casbin/casbin-hub","owner":"casbin","description":"The hub for Casbin","archived":false,"fork":false,"pushed_at":"2023-09-08T05:57:46.000Z","size":398,"stargazers_count":88,"open_issues_count":27,"forks_count":46,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-30T01:25:20.842Z","etag":null,"topics":["access-control","casbin","dashboard","permission","rbac","web"],"latest_commit_sha":null,"homepage":"https://dashboard.casbin.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-20T08:20:53.000Z","updated_at":"2024-10-15T15:23:27.000Z","dependencies_parsed_at":"2023-09-10T17:11:39.867Z","dependency_job_id":null,"html_url":"https://github.com/casbin/casbin-hub","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"9e77f201e0aab30642e13764a6a4e65d16c5e403"},"previous_names":["casbin/casbin-hub","casbin/casbin-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Fcasbin-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Fcasbin-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Fcasbin-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Fcasbin-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casbin","download_url":"https://codeload.github.com/casbin/casbin-hub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246718447,"owners_count":20822569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-control","casbin","dashboard","permission","rbac","web"],"created_at":"2024-08-02T13:01:04.919Z","updated_at":"2025-04-22T09:32:19.888Z","avatar_url":"https://github.com/casbin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Casbin-Hub\r\n====\r\n\r\nCasbin-Hub is the official web UI (admin portal) for Casbin models and policies. A security administrator can use it to view \u0026 edit Casbin models and policy rules.\r\n\r\n## Demo\r\n\r\nhttps://hub.casbin.com\r\n\r\n## Architecture\r\n\r\nCasbin-Hub contains 2 parts:\r\n\r\n| Name     | Description                              | Language                        | Source code                                                |\r\n|----------|------------------------------------------|---------------------------------|------------------------------------------------------------|\r\n| Frontend | Web frontend UI for Casbin-Hub     | Javascript + React + Ant Design | https://github.com/casbin/casbin-hub/tree/master/web |\r\n| Backend  | RESTful API backend for Casbin-Hub | Golang + Beego + MySQL          | https://github.com/casbin/casbin-hub                 |\r\n\r\n## Installation\r\n\r\n- Get the code:\r\n\r\n```shell\r\ngo get github.com/casbin/casbin-hub\r\n```\r\n\r\n- Setup database:\r\n\r\nCasbin-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\r\n\r\n- Setup Casbin-Hub to enable some third-party login platform\r\n\r\nCasbin-forum provide a way to sign up using Github account, so you may have to get your own `GithubAuthClientID`, `GithubAuthClientSecret` first.\r\n\r\nYou 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`.\r\n\r\n- Modified config files:\r\n\r\nChange your own `GithubAuthClientID`, `GithubAuthClientSecret` in conf/app.conf, web/src/conf.js.\r\n\r\n```ini\r\ndataSourceName = root:123@tcp(localhost:3306)/\r\n```\r\n\r\nCasbin-Hub uses XORM to connect to DB, so all DBs supported by XORM can also be used.\r\n\r\n- Run backend (in port 8800):\r\n\r\n```\r\ngo run main.go\r\n ```\r\n\r\n- Run frontend (in the same machine's port 3030):\r\n\r\n```\r\ncd web\r\nnpm install\r\nnpm start\r\n```\r\n\r\n- Open browser:\r\n\r\nhttp://localhost:3030/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasbin%2Fcasbin-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasbin%2Fcasbin-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasbin%2Fcasbin-hub/lists"}