{"id":15603383,"url":"https://github.com/forsbergplustwo/partner-metrics","last_synced_at":"2025-10-31T17:30:37.203Z","repository":{"id":189611958,"uuid":"88376128","full_name":"forsbergplustwo/partner-metrics","owner":"forsbergplustwo","description":"Partner Metrics provides useful revenue metrics of your app, theme and affiliate revenue generated from the Shopify Partner Program.","archived":false,"fork":false,"pushed_at":"2024-08-15T10:37:27.000Z","size":5703,"stargazers_count":58,"open_issues_count":13,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-14T19:55:45.469Z","etag":null,"topics":["metrics-visualization","rails","ruby","ruby-on-rails","shopify-api","shopify-apps"],"latest_commit_sha":null,"homepage":"https://partnermetrics.io","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forsbergplustwo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-04-15T21:52:21.000Z","updated_at":"2025-02-11T13:28:10.000Z","dependencies_parsed_at":"2023-08-21T02:02:36.779Z","dependency_job_id":"e755c840-b40e-44ed-94b9-77eb803d6092","html_url":"https://github.com/forsbergplustwo/partner-metrics","commit_stats":{"total_commits":256,"total_committers":7,"mean_commits":36.57142857142857,"dds":0.078125,"last_synced_commit":"77a8ba7fa11689f5352f18a5f9c85326092b128a"},"previous_names":["forsbergplustwo/partner-metrics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsbergplustwo%2Fpartner-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsbergplustwo%2Fpartner-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsbergplustwo%2Fpartner-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsbergplustwo%2Fpartner-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forsbergplustwo","download_url":"https://codeload.github.com/forsbergplustwo/partner-metrics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239221199,"owners_count":19602380,"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":["metrics-visualization","rails","ruby","ruby-on-rails","shopify-api","shopify-apps"],"created_at":"2024-10-03T03:03:02.102Z","updated_at":"2025-10-31T17:30:37.150Z","avatar_url":"https://github.com/forsbergplustwo.png","language":"Ruby","funding_links":[],"categories":["Example Apps"],"sub_categories":["Ruby Examples"],"readme":"# Partner Metrics\n\nPartner Metrics is an open-source project providing you with metrics of your app, theme and affiliate revenue from the Shopify Partner program. Currently it calculates metrics based on monthly and yearly subscriptions, one-time charges and usage charges from Shopify.\n\nThis project is not officially related to Shopify in any way.\n\n## Usage\n\nPartner Metrics was created by [@forsbergplustwo](@forsbergplustwo), and will remain free to use at:\n\n##### https://partnermetrics.io\n\n## Development\n\n### Upgrading\n\nThe app in this repo was recently upgraded to Rails 7. If you had the earlier version running locally, you can upgrade by performing the following actions on your existing local app:\n\n```\nbin/rails db:migrate\nbin/rails db:encryption:init\nbin/rails create_initial_imports\nbin/rails migrate_partner_api_credentials\n```\n\nNote: We recommend deleting your existing metrics data and re-importing to take advantage of improvements to churn calculations + yearly subscriptions support.\n\n### First time setup\n\n1. Setup dependencies, environment \u0026 database: `bin/setup`\n2. Start web server and sidekiq workers with: `bin/dev`\n\nVisit `localhost:4000`\n\nTo run tests:\n\n```bash\nbin/rails test\n\n# including system tests\nbin/rails test:all\n```\n\nTo import data from Partner API manually (once you have added your credentials in the app UI):\n```bash\nbin/rails import_all_from_partner_api\n```\n\n### Deploying to Production\n\n1. Delete `config/credentials/production.yml.enc`\n2. Run `bin/rails credentials:edit -e production` and update as necessary\n3. If deploying to Heroku, make sure to set `heroku config:set RAILS_MASTER_KEY=[key]` where `[key]` is the value of your `config/credentials/production.key` file.\n4. Setup a cron job to run `bin/rails import_all_from_partner_api` on a daily basis.\n\n## Contributing\nWe'd love for you to contribute join us in making it better! In general, please follow the \"fork-and-pull\" Git workflow.\n\n1. Check out the Issues page, feel free to pick an existing issue or add a new one with clear title and description.\n2. Fork and clone the repo on GitHub\n3. Create a new branch for your fix or code improvement\n4. Run `standardrb --fix` to safely-autofix any linter or formatter corrections\n5. Commit changes to your own branch\n6. Push your work back up to your fork\n7. Submit a Pull request so that @forsbergplustwo can review your changes. Please link your PR to the existing issue if you are solving one.\n\n## Testing\nWe have a handful of MiniTests and Fixtures in the codebase, and welcome more. Please write MiniTests for new code you create.\n\n## Code of Conduct\nEveryone interacting in Partner Metrics repository is expected to follow the [Code of Conduct](https://github.com/forsbergplustwo/partner-metrics-saas/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nPartner Metrics is released under the [GPLv3 License](https://github.com/forsbergplustwo/partner-metrics-saas/blob/main/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsbergplustwo%2Fpartner-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforsbergplustwo%2Fpartner-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsbergplustwo%2Fpartner-metrics/lists"}