{"id":15371549,"url":"https://github.com/stevehobbsdev/fga-expenses-tracker","last_synced_at":"2026-01-28T17:38:33.700Z","repository":{"id":243649145,"uuid":"810757205","full_name":"stevehobbsdev/fga-expenses-tracker","owner":"stevehobbsdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T07:35:23.000Z","size":253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T14:05:33.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevehobbsdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T09:50:37.000Z","updated_at":"2024-10-23T07:35:29.000Z","dependencies_parsed_at":"2024-06-29T06:34:37.795Z","dependency_job_id":"953af471-a8f4-4eb1-b7ec-105fe42329eb","html_url":"https://github.com/stevehobbsdev/fga-expenses-tracker","commit_stats":{"total_commits":48,"total_committers":2,"mean_commits":24.0,"dds":0.1875,"last_synced_commit":"86f17ae5b129922824689dfbf106b298fbb716e1"},"previous_names":["stevehobbsdev/fga-expenses-tracker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehobbsdev%2Ffga-expenses-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehobbsdev%2Ffga-expenses-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehobbsdev%2Ffga-expenses-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevehobbsdev%2Ffga-expenses-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevehobbsdev","download_url":"https://codeload.github.com/stevehobbsdev/fga-expenses-tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249085439,"owners_count":21210267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:47:31.539Z","updated_at":"2026-01-28T17:38:33.657Z","avatar_url":"https://github.com/stevehobbsdev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FGA Expenses Tracker demo\n\nThis is a demo application that shows how one can implement fine-grained authorization using [OpenFGA](https://openfga.dev/) into their applications.\n\n## Prerequisites\n\n- Ruby 3.2.2\n- Yarn\n- Docker\n- [OpenFGA CLI](https://github.com/openfga/cli)\n\n## Setup\n\nClone the repo and:\n\n```bash\n# Install JS dependencies\nyarn\n\n# Install gems\nbundle install\n\n# Seed the database\nrake db:schema:load\nrake db:seed\n```\n\n**Auth0 credentials**\n\nThe application integrates with [Auth0](https://auth0.com) for authentication. Provide the application with your Auth0 credentials by copying `.env.example` to a new file called `.env` and providing the values:\n\n| Value                 | Description                                  |\n| --------------------- | -------------------------------------------- |\n| `AUTH0_DOMAIN`        | Your Auth0 domain, e.g: 'myapp.us.auth0.com' |\n| `AUTH0_CLIENT_ID`     | Your Auth0 client ID                         |\n| `AUTH0_CLIENT_SECRET` | Your Auth0 client secret                     |\n\n### FGA setup\n\nThe application provides a [Docker Compose](https://docs.docker.com/compose/reference/) file that allows you to get FGA up and running quickly. Once you have [Docker](https://www.docker.com/) installed, run `docker compose up -d` to start the FGA server.\n\nNext, install the [OpenFGA CLI](https://github.com/openfga/cli) from GitHub. This can be used to interact with the FGA store.\n\nTo set up FGA for this application, create a store:\n\n```bash\nfga store create --name expenses-tracker\n```\n\nThis will provide you with a store ID in the JSON output from that command. Copy this value into your `.env` file:\n\n```\nFGA_STORE_ID=\u003cyour store ID\u003e\n```\n\nNext, write the authorization model that is included with this application, providing the ID of the store you just created:\n\n```\nfga model write --store-id=\u003cyour store ID\u003e --file=config/expenses.fga\n```\n\nThis time, the output will contain a _model ID_ that you must also include in your `.env` file:\n\n```\nFGA_MODEL_ID=\u003cyour model ID\u003e\n```\n\nNow the application is ready to go 🎉!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevehobbsdev%2Ffga-expenses-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevehobbsdev%2Ffga-expenses-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevehobbsdev%2Ffga-expenses-tracker/lists"}