{"id":21714481,"url":"https://github.com/frizbee/hasura-tracker","last_synced_at":"2025-03-20T19:23:02.854Z","repository":{"id":72570749,"uuid":"495124725","full_name":"frizbee/hasura-tracker","owner":"frizbee","description":"Track Hasura metadata changes and store it to local file","archived":false,"fork":false,"pushed_at":"2022-05-22T17:15:25.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T17:33:05.401Z","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/frizbee.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":"2022-05-22T17:09:37.000Z","updated_at":"2024-11-08T13:09:19.000Z","dependencies_parsed_at":"2023-03-24T10:47:12.034Z","dependency_job_id":null,"html_url":"https://github.com/frizbee/hasura-tracker","commit_stats":null,"previous_names":["frizbee/hasura-tracker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fhasura-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fhasura-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fhasura-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fhasura-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frizbee","download_url":"https://codeload.github.com/frizbee/hasura-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244676451,"owners_count":20491828,"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-11-26T00:35:34.394Z","updated_at":"2025-03-20T19:23:02.834Z","avatar_url":"https://github.com/frizbee.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hasura tracker\n\n## Infomation\n\nWill track changes of metadata and store it to local file. After metadata will be read, changes will be exported to local backup. After that process will be started over\n\n#### Run app with cron\n\nSet your own path of insalled hasura tracker\n\n```\n0 */2 * * * /home/deployer/apps/hasura-tracker/ruby_wrapper_sh \u003e\u003e /home/deployer/apps/hasura-tracker/log/tracker.log 2\u003e\u00261\n```\n\n#### Structure\n\nFiles information for current app\n\n- tracker.rb - main file to call command and store result to file hasura_chacnges.txt\n- ruby_wrapper_sh - wrapper file for crontab to run ruby script\n- hasura_changes.txt - will be generated automatically and store result from hasura metadata diff command\n- log/tracker.log - will be generated automatically by crontab command and store output and errors to tracker.log file by running command above in section Run app with cron\n\n#### Configuration\n\nMake sure to udpate and set all file path in the file.\n1. tracker.rb require to set filepath and name for storing all result from hasura command. Set variable name `file`, bydefault it set as /home/deployer/apps/hasura-tracker/hasura_changes.txt\n2. tracker.rb require to set path of hasura folder. This folder will be available after running `hasura init`. Set variable `hasura_dir` for this, by default it is /home/deployer/apps/hasura\n3. Make sure to set correct filepath to crontab, running `crontab -e`, IMPORTANT: point your cron path to ruby_wrapper_sh to run shell script which will run ruby script\n\n#### Contribution\n\nPlanning to add sqllite3 to store data, and read with other apps, such as telegram bot to return changes to telegram user\n\n#### Credits\n\nhttps://github.com/frizbee\nhttps://gitlab.com/frizbee\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrizbee%2Fhasura-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrizbee%2Fhasura-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrizbee%2Fhasura-tracker/lists"}