{"id":18588139,"url":"https://github.com/peimelo/controlled_health_api","last_synced_at":"2026-05-17T17:43:29.745Z","repository":{"id":40006691,"uuid":"283334507","full_name":"peimelo/controlled_health_api","owner":"peimelo","description":"Controlled Health website API built with Ruby on Rails 6 as API and using devise_token_auth.","archived":false,"fork":false,"pushed_at":"2023-01-19T22:23:45.000Z","size":323,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T09:08:47.849Z","etag":null,"topics":["api","devise-token-auth","rails","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://saudecontrolada.com.br","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/peimelo.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":"2020-07-28T21:43:08.000Z","updated_at":"2023-12-20T07:39:28.000Z","dependencies_parsed_at":"2023-01-28T23:46:19.200Z","dependency_job_id":null,"html_url":"https://github.com/peimelo/controlled_health_api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/peimelo/controlled_health_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fcontrolled_health_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fcontrolled_health_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fcontrolled_health_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fcontrolled_health_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peimelo","download_url":"https://codeload.github.com/peimelo/controlled_health_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fcontrolled_health_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266516427,"owners_count":23941425,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","devise-token-auth","rails","ruby","ruby-on-rails"],"created_at":"2024-11-07T00:44:50.604Z","updated_at":"2026-05-17T17:43:23.089Z","avatar_url":"https://github.com/peimelo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Controlled Health API [![Maintainability](https://api.codeclimate.com/v1/badges/b518207f640d3edfe849/maintainability)](https://codeclimate.com/github/peimelo/controlled_health_api/maintainability) \u003ca href=\"https://codeclimate.com/github/peimelo/controlled_health_api/test_coverage\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/b518207f640d3edfe849/test_coverage\" /\u003e\u003c/a\u003e ![Tests](https://github.com/peimelo/controlled_health_api/actions/workflows/ruby.yml/badge.svg)\n\nControlled Health website API built with [Ruby on Rails](https://rubyonrails.org/) as API and using [devise_token_auth](https://github.com/lynndylanhurley/devise_token_auth).\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eRuby version\u003c/td\u003e\n    \u003ctd\u003e\n      3.0.4\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eRails version\u003c/td\u003e\n    \u003ctd\u003e\n      6.1.6.1\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eDatabase\u003c/td\u003e\n    \u003ctd\u003e\n      PostgreSQL\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nThe frontend of this repository was built with Angular and is called [controlled-health-frontend](https://github.com/peimelo/controlled-health-frontend).\n\n## Configuration\n\n```bash\ngit clone https://github.com/peimelo/controlled_health_api.git\ncd controlled_health_api\n\n# installation of dependencies\nbundle install\n\n# creation of database and tables\nrails db:create\nrails db:migrate\n\n# load initial data\nrails db:seed\n\n# run the project\nrails s\n```\n\n## Configuration for Production\n\n```bash\n# delete the config/credentials.yml.enc file\nrm config/credentials.yml.enc\n\n# run the command to create credentials and master key (replace 'code' if you don't use VS Code)\nEDITOR=\"code --wait\" bin/rails credentials:edit\n```\n\nAdd the information below in the [credentials](https://guides.rubyonrails.org/security.html#custom-credentials) to configure the email used by the Devise\ngem and Exception Notification gem (replace with the values ​​you want):\n\n```yml\n# ... your content above\n\ngmail:\n  user_name: your@email.com\n  password: your_password\n\nexception_recipients: exceptions@example.com\n```\n\nSave and close the `config/credentials.yml.enc` file.\n\nIf you want to use another email provider, change it in the file\n`config/environments/production.rb`.\n\nTo configure `default_confirm_success_url`, change it in the file\n`config/initializers/devise_token_auth.rb`.\n\nTo configure [CORS](https://github.com/cyu/rack-cors) `origins`, change it in the file\n`config/initializers/cors.rb`.\n\nTo configure [Exception Notification](https://github.com/smartinez87/exception_notification), change it in the file\n`config/initializers/exception_notification.rb`.\n\n## Tests\n\nTo run the tests:\n\n```bash\nbundle exec rspec\n```\n\n## Configuration to use Docker\n\n```bash\n# upload the web and database instances\ndocker-compose up -d\n\n# creation of tables\ndocker-compose exec web bundle exec rails db:migrate\n\n# load initial data\ndocker-compose exec web bundle exec rails db:seed\n\n# creation of database and test tables\ndocker-compose exec web bundle exec rails db:create RAILS_ENV=test\ndocker-compose exec web bundle exec rails db:migrate RAILS_ENV=test\n\n# run the tests\ndocker-compose exec web bundle exec rspec\n\n# stop the instances\ndocker-compose stop\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Fcontrolled_health_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeimelo%2Fcontrolled_health_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Fcontrolled_health_api/lists"}