Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T17:40:01.000Z (8 months ago)
- Last Synced: 2024-05-06T18:55:56.776Z (8 months ago)
- Topics: abac, authz, casbin, demo, jest, nest, typeorm
- Language: TypeScript
- Homepage: https://radiant-temple-29238.herokuapp.com
- Size: 382 KB
- Stars: 41
- Watchers: 3
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/Jarvie8176/casbin-example.svg?branch=master)](https://travis-ci.org/Jarvie8176/casbin-example)
[![Coverage Status](https://coveralls.io/repos/github/Jarvie8176/casbin-example/badge.svg?branch=master)](https://coveralls.io/github/Jarvie8176/casbin-example?branch=master)
[![codebeat badge](https://codebeat.co/badges/173ef15e-9c29-4983-a017-8c364d0f4bff)](https://codebeat.co/projects/github-com-jarvie8176-casbin-example-master)[![Deploy](https://www.herokucdn.com/deploy/button.svg)](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)