{"id":17146151,"url":"https://github.com/codenamev/slimer-example-heroku","last_synced_at":"2025-03-24T10:25:39.911Z","repository":{"id":137375921,"uuid":"332756872","full_name":"codenamev/slimer-example-heroku","owner":"codenamev","description":"An example running Slimer on Heroku.","archived":false,"fork":false,"pushed_at":"2021-01-25T13:50:44.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T15:50:41.586Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codenamev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-25T13:30:48.000Z","updated_at":"2021-01-25T13:50:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6a44887-17e3-47b4-94ae-aca96a6abc30","html_url":"https://github.com/codenamev/slimer-example-heroku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenamev%2Fslimer-example-heroku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenamev%2Fslimer-example-heroku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenamev%2Fslimer-example-heroku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenamev%2Fslimer-example-heroku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenamev","download_url":"https://codeload.github.com/codenamev/slimer-example-heroku/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245250877,"owners_count":20584795,"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-14T21:07:57.500Z","updated_at":"2025-03-24T10:25:39.888Z","avatar_url":"https://github.com/codenamev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slimer-example-heroku\n\nAn example of running [Slimer](https://github.com/codenamev/slimer) on Heroku.\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n## Setup\n\n1. Deploy to Heroku using the button above.\n2. Visit your new app on heroku `https://slimer-example.herokuapp.com/status` and verify Slimer responds with `Ok`.\n3. Generate an API key: `heroku run bundle exec rake slimer:api_keys:generate`, and enter a name for the key when it asks.\n\n## Consuming substances\n\nUsing the API key you generated above, you can tell Slimer to consume any\nsubstance in one of two ways. Replace any `API_KEY` in the URLs below with the\nAPI key you generated  in the Setup above. Also, replace `slimer-example` in any\nof the URLs with the name of your new Heroku app.\n\n**Consume via GET request**\n\n`curl https://slimer-example.herokuapp.com/API_KEY/consume?store_this=this\u0026and_that=that`\n\nThe above request will create a substance with a `payload` of:\n\n```json\n{\n  \"store_this\": \"this\",\n  \"and_that\": \"that\"\n}\n```\n\n**Consume via POST request\n\nThe same request above can be made as a `POST` request:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" \\\n  -d '{\"store_this\": \"this\", \"and_that\": \"that\"}' \\\n  https://slimer-example.herokuapp.com/API_KEY/consume\n```\n\n** Metadata **\n\nSubstances can be stored with metadata to describe the data being stored.\nSimply provide a `metadata` parameter in your payload and this will be stored\nseparately.\n\n## Upgrading\n\nThe upgrade process is as simple as:\n\n1. Upgrade Slimer: `bundle update`\n2. Re-deploy to Heroku: `git push heroku main`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenamev%2Fslimer-example-heroku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenamev%2Fslimer-example-heroku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenamev%2Fslimer-example-heroku/lists"}