Delete test/syntaxHighlighting.test.ts
1 file changed
tree: 2d36b1cc056634e3ac8079d5f3d48f67e124af0b
  1. .github/
  2. app/
  3. messages/
  4. public/
  5. test/
  6. .editorconfig
  7. .eslintrc.json
  8. .gitignore
  9. .prettierrc.json
  10. components.json
  11. jest.config.js
  12. LICENSE
  13. main.js
  14. middleware.ts
  15. netlify.toml
  16. next.config.mjs
  17. package.json
  18. postcss.config.js
  19. preload.js
  20. README.md
  21. tailwind.config.ts
  22. tsconfig.json
  23. yarn.lock
README.md

Casbin-editor

semantic-release Build Release GitHub issues GitHub forks Sourcegraph License Discord

Casbin-editor is a web-based Casbin model and policy editor. It's based on Next.js + 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.

For Dev

yarn install
yarn dev

Open browser: http://localhost:3000/

Production Preview

yarn build

# Make sure port 3000 is not in use
yarn start

Open browser: http://localhost:3000/

For Electron

This project supports being built as an Electron app:

yarn install
yarn dist