{"id":19774618,"url":"https://github.com/yeukfei02/news-api","last_synced_at":"2026-05-02T18:39:52.556Z","repository":{"id":41999837,"uuid":"464926519","full_name":"yeukfei02/news-api","owner":"yeukfei02","description":"news-api","archived":false,"fork":false,"pushed_at":"2023-12-15T05:26:02.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T01:27:18.545Z","etag":null,"topics":["grape","postgres","rails","rspec","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeukfei02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-01T14:28:51.000Z","updated_at":"2022-05-18T15:08:26.000Z","dependencies_parsed_at":"2022-08-12T01:51:00.990Z","dependency_job_id":null,"html_url":"https://github.com/yeukfei02/news-api","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnews-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnews-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnews-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnews-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeukfei02","download_url":"https://codeload.github.com/yeukfei02/news-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241105535,"owners_count":19910650,"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":["grape","postgres","rails","rspec","ruby","ruby-on-rails"],"created_at":"2024-11-12T05:13:26.946Z","updated_at":"2026-05-02T18:39:47.536Z","avatar_url":"https://github.com/yeukfei02.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# news-api\n\nnews-api\n\ndocumentation: \u003chttps://documenter.getpostman.com/view/3827865/UVksLZKk\u003e\n\n## Requirement\n\n- install ruby (v3.0.3)\n- install gem\n- install bundle\n\n## Testing and run\n\n```zsh\n// install ruby dependencies\n$ bundle install\n\n// run api in local\n$ rails s\n\n// create controller\n$ rails g controller \u003ccontrollerName\u003e\n\n// create model\n$ rails g model \u003cmodelName\u003e\n\n// create migration file\n$ rails g migration \u003cmigrationName\u003e\n\n// db migration\n$ rails db:migrate\n\n// db rollback\n$ rails db:rollback\n\n// db reset\n$ rails db:migrate:reset\n\n// list routes\n$ rails routes\n\n// run test case\n$ bundle exec rspec\n\n// rubocop\n$ rubocop --auto-correct\n$ rubocop -A\n\n// reek\n$ reek\n\n// generate schema info in model\n$ annotate --models\n\n// audit Gemfile.lock\n$ bundler-audit\n```\n\n## Docker\n\n```zsh\n// build images and start container in one line\ndocker-compose up -d --build\n\n// run db migration in container\ndocker-compose exec web bundle exec rails db:migrate\n\n// go inside container\ndocker exec -it \u003ccontainerId\u003e /bin/bash\n\n// check container logs\ndocker logs \u003ccontainerId\u003e\n\n// remove and stop container\ndocker-compose down\n```\n\nopen localhost:3000","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Fnews-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeukfei02%2Fnews-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Fnews-api/lists"}