Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasl-lab/rbac_core
(Moved to https://github.com/rails-engine/role_core) A Rails engine providing essential industry of Role-based access control
https://github.com/jasl-lab/rbac_core
access-control rails-engine rbac
Last synced: about 2 months ago
JSON representation
(Moved to https://github.com/rails-engine/role_core) A Rails engine providing essential industry of Role-based access control
- Host: GitHub
- URL: https://github.com/jasl-lab/rbac_core
- Owner: jasl-lab
- License: mit
- Created: 2017-07-02T18:30:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T18:34:28.000Z (almost 7 years ago)
- Last Synced: 2024-08-09T12:48:32.877Z (5 months ago)
- Topics: access-control, rails-engine, rbac
- Language: Ruby
- Homepage:
- Size: 68.4 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
RBAC Core
====A Rails engine providing essential industry of Role-based access control.
## Usage
See demo for now.
## Installation
Add this line to your Gemfile:
```ruby
gem 'rbac_core'
```Or you may want to include the gem directly from GitHub:
```ruby
gem 'rbac_core', github: 'jasl-lab/rbac_core'
```And then execute:
```sh
$ bundle
```Copy migrations
```sh
$ bin/rails rbac_core:install:migrations
```Then do migrate
```sh
$ bin/rails db:migrate
```## Demo
Clone the repository.
```sh
$ git clone https://github.com/jasl/rbac_core.git
```Change directory
```sh
$ cd rbac_core
```Run bundler
```sh
$ bundle install
```Preparing database
```sh
$ bin/rails db:migrate
```Start the Rails server
```sh
$ bin/rails s
```Open your browser, and visit `http://localhost:3000`
## Contributing
Bug report or pull request are welcome.
### Make a pull request
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestPlease write unit test with your code if necessary.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).