{"id":15715272,"url":"https://github.com/crazyoptimist/rails-api-sr-bootcamp","last_synced_at":"2025-03-30T20:15:54.514Z","repository":{"id":118360581,"uuid":"448078553","full_name":"crazyoptimist/rails-api-sr-bootcamp","owner":"crazyoptimist","description":"Rails API - Senior Level","archived":false,"fork":false,"pushed_at":"2022-02-04T09:15:31.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T22:59:03.049Z","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/crazyoptimist.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":"2022-01-14T19:05:19.000Z","updated_at":"2022-01-14T19:05:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ae2ed79-24f3-45c4-8891-04bf4056943d","html_url":"https://github.com/crazyoptimist/rails-api-sr-bootcamp","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/crazyoptimist%2Frails-api-sr-bootcamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Frails-api-sr-bootcamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Frails-api-sr-bootcamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Frails-api-sr-bootcamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyoptimist","download_url":"https://codeload.github.com/crazyoptimist/rails-api-sr-bootcamp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372741,"owners_count":20766635,"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-03T21:40:50.620Z","updated_at":"2025-03-30T20:15:54.494Z","avatar_url":"https://github.com/crazyoptimist.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails API Sr Basecamp\n\n## DEV ENV SETUP\n\nInstall RVM and Ruby, create gemset for your specific project\n```bash\n# http://rvm.io/rvm/install\n\\curl -sSL https://get.rvm.io | bash\nrvm install 2.7.2\nrvm use 2.7.2\nrvm gemset create rails-api\n```\n\nAdd below lines to your `.zshrc` or `.bashrc`(it depends on what terminal you use, like zsh, bash or fish)  \n```ini\nsource ~/.rvm/scripts/rvm\nrvm use ruby 2.7.2@rails-api\n```\n\nCreate a new Rails project\n```bash\nsudo apt-get install postgresql-client libpq5 libpq-dev # I used Debian Bullseye, and the deps are required for using postgresql\nrails new api -T --api -d postgresql\n```\n- `-T`: do not create default test folder (Rails comes with Minitest by default, we drop it to use Rspec instead)\n- `--api`: drop template(frontend) related assets/config\n\nInstall Rspec and Factory Bot\n```\n group :development, :test do\n   # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem\n   gem \"debug\", platforms: %i[ mri mingw x64_mingw ]\n+  gem 'rspec-rails', '~\u003e 5.0.0'\n+  gem 'factory_bot_rails'\n end\n```\n\n```bash\nrails generate rspec:install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Frails-api-sr-bootcamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyoptimist%2Frails-api-sr-bootcamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Frails-api-sr-bootcamp/lists"}