{"id":15513602,"url":"https://github.com/sebouchu/ujs-pagination-app","last_synced_at":"2025-03-28T21:42:38.823Z","repository":{"id":84592310,"uuid":"477107212","full_name":"SebouChu/ujs-pagination-app","owner":"SebouChu","description":"Rails 7 + UJS + Kaminari","archived":false,"fork":false,"pushed_at":"2022-04-03T09:19:54.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-03T08:01:48.696Z","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/SebouChu.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-04-02T16:17:28.000Z","updated_at":"2022-04-02T16:17:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ff2cece-e3a0-4587-914c-7022b85c7eeb","html_url":"https://github.com/SebouChu/ujs-pagination-app","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"5933f646df62a0700406c2f22ebb541c045770a1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fujs-pagination-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fujs-pagination-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fujs-pagination-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebouChu%2Fujs-pagination-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebouChu","download_url":"https://codeload.github.com/SebouChu/ujs-pagination-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106669,"owners_count":20724400,"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-02T09:54:27.895Z","updated_at":"2025-03-28T21:42:38.791Z","avatar_url":"https://github.com/SebouChu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UJS Pagination App\n\nWeb application with articles, powered by Rails 7, Rails-UJS and Kaminari.\n\n## Setup\n\n- Clone this repo and move inside the project directory\n- Run `bundle install`\n- Run `yarn`\n- Run `rails db:setup db:seed`\n\n## Run\n\n- Run `bin/dev`\n\n## How does it work?\n\nOn the index, articles are paginated (8 per page). When we click on the \"Load more\" button, Rails-UJS catches the click, makes an AJAX request, still handled by `ArticlesController#index` but with `:js` format.\n\nThe `.js.erb` is processed by ERB then returned to Rails-UJS which executes the script. This script append the next articles to the list then updates or remove the « Load more » button.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebouchu%2Fujs-pagination-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebouchu%2Fujs-pagination-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebouchu%2Fujs-pagination-app/lists"}