{"id":16058520,"url":"https://github.com/bhacaz/vercel-functions-ruby-test","last_synced_at":"2026-04-27T12:40:06.766Z","repository":{"id":86512137,"uuid":"422686227","full_name":"Bhacaz/vercel-functions-ruby-test","owner":"Bhacaz","description":"Test Vercel Ruby serverless functions","archived":false,"fork":false,"pushed_at":"2022-02-04T19:47:42.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-17T14:03:29.407Z","etag":null,"topics":["ruby","vercel","vercel-serverless"],"latest_commit_sha":null,"homepage":"","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/Bhacaz.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":"2021-10-29T19:06:26.000Z","updated_at":"2022-01-10T16:04:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"6dd28679-5570-4d12-aff7-7c40309701dd","html_url":"https://github.com/Bhacaz/vercel-functions-ruby-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bhacaz/vercel-functions-ruby-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fvercel-functions-ruby-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fvercel-functions-ruby-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fvercel-functions-ruby-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fvercel-functions-ruby-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bhacaz","download_url":"https://codeload.github.com/Bhacaz/vercel-functions-ruby-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fvercel-functions-ruby-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["ruby","vercel","vercel-serverless"],"created_at":"2024-10-09T03:21:43.806Z","updated_at":"2026-04-27T12:40:06.717Z","avatar_url":"https://github.com/Bhacaz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vercel-functions-ruby-test\n\nRuby Serverless functions are still in Alpha at Vercel and we can't test it locally\nwith the Vercel-CLI.\n\nThis repo provide a script and examples to test locally your serverless functions.\n\nNo need to modify this script. The script will explore the `api` folder to create each `.rb` file a GET and POST endpoint.\n\n## Installation\n\n1. Copy the `server.rb` file into your root directory of your project.\n2. Run `ruby server.rb`\n3. Test your function to `http://localhost:8000/api/{{function-name}}`\n\n## Examples\n\n### `GET api/now`\n\n[./api/now.rb](https://github.com/Bhacaz/vercel-functions-ruby-test/blob/main/api/now.rb)\n\n```shell\ncurl http://localhost:8000/api/now\n```\n\n### `POST api/multiply`\n\n[./api/multiply.rb](https://github.com/Bhacaz/vercel-functions-ruby-test/blob/main/api/multiply.rb)\n\n```shell\ncurl -X POST 'http://localhost:8000/api/multiply' -H 'Content-Type: application/json' -d '{ \"x\": 2, \"y\": 4 }'\n```\n\n## Auto restart\n\nUse the [gem `rerun`](https://github.com/alexch/rerun) to restart the server on change.\n\n```shell\nrerun --dir api server.rb \n```\n\n## Thanks\n\nThanks for the inspiration https://github.com/gior/vercel-dev-ruby/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhacaz%2Fvercel-functions-ruby-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhacaz%2Fvercel-functions-ruby-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhacaz%2Fvercel-functions-ruby-test/lists"}