{"id":15656620,"url":"https://github.com/jaisonerick/concurrent_example","last_synced_at":"2025-10-03T23:45:36.070Z","repository":{"id":88161687,"uuid":"57450261","full_name":"jaisonerick/concurrent_example","owner":"jaisonerick","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-30T15:59:07.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T18:53:36.493Z","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/jaisonerick.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":"2016-04-30T15:58:51.000Z","updated_at":"2016-04-30T15:59:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ee4a3a0-18eb-4c4c-be87-ef380696131a","html_url":"https://github.com/jaisonerick/concurrent_example","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/jaisonerick%2Fconcurrent_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2Fconcurrent_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2Fconcurrent_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2Fconcurrent_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaisonerick","download_url":"https://codeload.github.com/jaisonerick/concurrent_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242164956,"owners_count":20082394,"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-03T13:03:31.224Z","updated_at":"2025-10-03T23:45:31.025Z","avatar_url":"https://github.com/jaisonerick.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concurrent\n\n## Getting Started\n\nAfter you have cloned this repo, run this setup script to set up your machine\nwith the necessary dependencies to run and test this app:\n\n    % ./bin/setup\n\nIt assumes you have a machine equipped with Ruby, Postgres, etc.\n\n## Deploy\n\nProvision your server using ansible. You must have a figaro settings file at\n`~/.\u003capp-name\u003e.yml`. The foreman rake task will copy this file to the root\ndirectory of your application. After provisioning, run:\n\n    % cap production deploy\n    % cap production deploy:restart\n\nIf you have multiple servers configured in production, the restart will be with\none server at a time, avoiding offline time.\n\n## Puma configuration\n\nThe figaro settings is not loaded before puma, so you must setup puma variables\nusing the `.env` file. These environment variables are: `WEB_CONCURRENCY` and\n`MAX_THREADS`.\n\n## Get user balance:\n\n```\ncurl -X \"GET\" \"http://localhost:3000/users/1\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Accept: application/json\"\n```\n\n## Add user credit:\n\n```\ncurl -X \"POST\" \"http://localhost:3000/users/1/credits\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Accept: application/json\" \\\n  -d $'{\n  \"credit\": {\n    \"amount\": 10\n  }\n}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaisonerick%2Fconcurrent_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaisonerick%2Fconcurrent_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaisonerick%2Fconcurrent_example/lists"}