This is a ruby on rails API that I built following the tutorial "Pagination in Ember with a JSON API Backend" by Frank Treacy (https://emberigniter.com/pagination-in-ember-with-json-api-backend/) .
This is a Rails 6 example with Kaminari (https://github.com/amatsuda/kaminari).
- Ruby version 2.7
- Rails 6.0.2.1
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
- Ruby version 2.7
- Rails 5 and up (this uses 6.0.2.1)
- The UI https://github.com/venusang/articles
$ git clone git@github.com:venusang/articles-api.git
$ cd articles-api
$ bundle install
$ bin/rails db:migrate
$ bin/rails db:seed
$ bin/rails s --binding 0.0.0.0
- Verify this app is running by visiting http://localhost:3000/articles
- Verify pagination is working by visiting http://localhost:3000/articles?page%20Bnumber%20B=3&page%5Bsize%5D=1