Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)