This repository contains an Expense Report Managing API in Ruby on Rails.
To get context about the use cases of this API you can read more in the blog post: What is the Right Authorization Model for my Application?
You can use this repository as a starting point before following the instructions in the following blog posts:
- branch:
add-rbac
has the code for the implementation explained in the blog post What is Role-Based Access Control and How to Implement it in my Rails API?.
- Ruby Version Manager (RVM)
- Ruby 3.1.2
- Rails 7.0.6
- Clone the repo with the following command:
git clone [email protected]:auth0-blog/rails-api-authorization.git
- Setup the database
rails db:setup
- Run the Expense Management API:
rails s