Go to file
Zixuan Liu c42450d6fd
feat: add enforce context (#88)
Signed-off-by: nodece <nodeces@gmail.com>
2023-05-03 09:52:27 +08:00
.github/workflows ci: use yarn instead of npm 2021-09-11 11:45:10 +08:00
public Add favicon 2019-11-17 16:35:08 +08:00
src feat: add enforce context (#88) 2023-05-03 09:52:27 +08:00
.eslintrc First commit 2019-11-17 15:15:25 +08:00
.gitignore feat: add pattern model 2020-10-09 15:41:13 +08:00
.prettierrc First commit 2019-11-17 15:15:25 +08:00
LICENSE Initial commit 2019-11-13 13:52:53 +08:00
README.md Fix URLs in README 2022-11-25 19:37:35 +08:00
craco.config.js feat: upgrade casbin to latest v5.26.1 (#87) 2023-04-18 09:45:57 +08:00
netlify.toml feat: Add netlify PR preview 2021-07-25 23:14:47 +08:00
package.json feat: upgrade casbin to latest v5.26.1 (#87) 2023-04-18 09:45:57 +08:00
tsconfig.json First commit 2019-11-17 15:15:25 +08:00
yarn.lock feat: upgrade casbin to latest v5.26.1 (#87) 2023-04-18 09:45:57 +08:00

README.md

Casbin-editor

Casbin-editor is a web-based Casbin model and policy editor. It's based on React + TypeScript.

Use the Casbin-editor to write your Casbin model and policy in your web browser. It provides functionality such as syntax highlighting and code completion, just like an IDE for a programming language.

Try it at either:

  1. Casbin official website: https://casbin.org/editor
  2. Our standalone GitHub pages: https://editor.casbin.org

How it works?

Casbin-editor is a pure frontend Javascript project. It uses node-casbin to perform policy enforcement. It's notable that node-casbin can be used either in frontend Javascript or Node.js.

This project can be viewed as an example for using node-casbin in the browser.

Getting started

npm install
npm start

Open browser: http://localhost:3000/

Deployment

npm deploy

The generated static pages will be pushed into gh-pages branch of origin and published in GitHub Pages (https://editor.casbin.org). The Casbin official site (https://casbin.org/editor) uses iframe to embed the published GitHub pages.