{"id":19752201,"url":"https://github.com/ipatch/kegcop_web_api","last_synced_at":"2026-05-15T04:02:14.484Z","repository":{"id":19248845,"uuid":"22484203","full_name":"ipatch/kegcop_web_api","owner":"ipatch","description":"An API for csv files used in conjuction with the KegCop iOS app.","archived":false,"fork":false,"pushed_at":"2022-12-14T08:16:28.000Z","size":3258,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T08:44:09.077Z","etag":null,"topics":["api","kegcop","rails","ruby"],"latest_commit_sha":null,"homepage":"http://kegcop.chrisrjones.com","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/ipatch.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}},"created_at":"2014-07-31T20:40:44.000Z","updated_at":"2020-11-12T22:43:02.000Z","dependencies_parsed_at":"2023-01-11T20:23:54.936Z","dependency_job_id":null,"html_url":"https://github.com/ipatch/kegcop_web_api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ipatch/kegcop_web_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipatch%2Fkegcop_web_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipatch%2Fkegcop_web_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipatch%2Fkegcop_web_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipatch%2Fkegcop_web_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipatch","download_url":"https://codeload.github.com/ipatch/kegcop_web_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipatch%2Fkegcop_web_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33053144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","kegcop","rails","ruby"],"created_at":"2024-11-12T02:48:23.612Z","updated_at":"2026-05-15T04:02:14.469Z","avatar_url":"https://github.com/ipatch.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## kegcop_web_api [![Build Status](https://travis-ci.org/ipatch/kegcop-web.svg?branch=master)](https://travis-ci.org/ipatch/kegcop-web)\n\n\u003e A rails app powering ⚡️ the API portion of [kegcop.chrisrjones.com](http://kegcop.chrisrjones.com)\n\n\n## Stack\n\n\u003ca id=\"stack\"\u003e\u003c/a\u003e\n\n- Ruby 2.6.3\n- Ngnix 1.10.3\n- Puma 3.12.4\n- JS Runtime: Node.js (V8)\n\n\n## Deployment\n\n\u003ca id=\"deployment\"\u003e\u003c/a\u003e\n\n```shell\necho \"rvm use [RUBY_VERSION_DEFINED_FOR_THIS APP]\"\necho \"as of March 4, 2020 👇\"\nrvm ues 2.6.3\nssh-agent\nssh-add ~/.ssh/id_rsa\ncap production deploy\n```\n\n\u003e Keep bundler ≤ 1.17.x in order to deploy a rails 4.2.x app\n\n### / Deployment / heroku\n\nthe below error will be rendered in a browser if a `secrets.yml` file is not present\n\n```\nAn unhandled lowlevel error occurred. The application logs may have details.\n```\n\n\u003ca id=\"system-deps\"\u003e\u003c/a\u003e\n\n## System dependencies\n\n- Postgres\n- [ImageMagick](https://github.com/ImageMagick/ImageMagick)\n\n\n## Working with `curl`\n\n\u003ca id=\"working-with-curl\"\u003e\u003c/a\u003e\n\n\u003e [httpie](https://github.com/jakubroztocil/httpie) is a sensible alternative to using `curl`\n\nTo test the following `documents` endpoint in this application\n\n```shell\ncurl -I localhost:3000/documents\n```\n\nThe above `curl` request will print just the headers for the `documents` endpoint.\n\nThe `-X` flag specifies the command request, ie. `GET`, `POST`, `DELETE`, `PATCH`.\n\nTo execute a `GET` request on an endpoint\n\n```shell\ncurl http://localhost:3000/documents\n```\n\nTo force a `JSON` response from an endpoint\n\n```shell\ncurl --header \"Accept:application/json\" http://localhost:3000/documents\n```\n\nTo include the headers in the response, use `-i` flag.\n\nTo test sending a `csv` file to the csv_files endpoint\n\n```shell\ncurl -X POST -F \"csv_file=@/path/to/mr-fancy-pants.csv\" localhost:3000/documents\n```\n\nThe above `curl` command should successfully send a file to the `documents` endpoint.\n\n## Useful Links\n\n\u003ca id=\"useful-links\"\u003e\u003c/a\u003e\n\n- [How to Import CSV files using rails](http://www.mattmorgante.com/technology/csv)\n\n## TODOs\n\n\u003ca id=\"todos\"\u003e\u003c/a\u003e\n\n- [x] ~~deploy app to heroku~~ \n- [x] ~~exp with ruby 2.6.5, and possibly upgrade app to use ruby 2.6.5~~\n- [x] ~~flesh out README~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipatch%2Fkegcop_web_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipatch%2Fkegcop_web_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipatch%2Fkegcop_web_api/lists"}