Ecto is powerful enough that we just don't need to pull in external dependencies to do pagination in Phoenix.
This episode covers making a Pagination module, and using from controllers and contexts. We'll build it for our StatWatch project, but the same strategy works for any Phoenix app. We'll paginate two different views, first a simple index view and then a more complex one where the paginated part is pre-loaded into another schema.
Next episode will add some view helpers to get auto-generated links and listing information.
(Source code available for premium members)