Pagination is one of the easiest ways to increase the performance of any application you are working on. Luckily setting up pagination is actually pretty simple. In this video I am going to show you the exact process to set up pagination in your own API by going through three distinct steps. First we will build out the most simple pagination set up which will get us started with pagination. After that we will implement a middleware to take care of pagination for use so we can paginate all of our endpoints easily. Lastly, we will connect out paginated API to a MongoDB database so we can have a fully functional paginated API with database storage.


Materials/References:

How To Install MongoDB: https://youtu.be/wcx3f0eUiAw
GitHub Code: https://github.com/WebDevSimplified/Paginated-API-Express


🧠 Concepts Covered:

- How to accept pagination params in an API
- How to create a pagination middleware
- Creating a middleware that accepts parameters
- Paginating a MongoDB collection


Find Me Here:

My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


#Pagination #WDS #API