https://github.com/jarvie8176/casbin-example
A Demo App of Attribute-based Access Control in Node.js Based on Casbin.
https://github.com/jarvie8176/casbin-example
abac authz casbin demo jest nest typeorm
Last synced: about 1 month ago
JSON representation
A Demo App of Attribute-based Access Control in Node.js Based on Casbin.
- Host: GitHub
- URL: https://github.com/jarvie8176/casbin-example
- Owner: Jarvie8176
- License: apache-2.0
- Created: 2019-04-29T02:00:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T17:40:01.000Z (about 1 year ago)
- Last Synced: 2025-03-24T06:45:26.915Z (about 2 months ago)
- Topics: abac, authz, casbin, demo, jest, nest, typeorm
- Language: TypeScript
- Homepage: https://radiant-temple-29238.herokuapp.com
- Size: 382 KB
- Stars: 43
- Watchers: 2
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/Jarvie8176/casbin-example)
[](https://coveralls.io/github/Jarvie8176/casbin-example?branch=master)
[](https://codebeat.co/projects/github-com-jarvie8176-casbin-example-master)[](https://heroku.com/deploy?template=https://github.com/jarvie8176/casbin-example/tree/master)
## Description
A demo app of attribute-based access control in Node.js based on [Casbin](https://github.com/casbin/casbin).
## Demo
https://radiant-temple-29238.herokuapp.com/
* it may take a few minutes to load if the webapp is inactive for too long.
## Guide
see [docs/guide.md](docs/guide.md).
## Installation
```bash
$ npm install
```## Running the app
```bash
$ npm start
```## Test
```bash
# unit tests
$ npm run test# test coverage
$ npm run test:cov
```## Model & policy
`src/config/`
## License
[Apache 2.0](LICENSE)