Create A Paginated API With Node.js - Complete Tutorial

Web Dev Simplified
Web Dev Simplified
193.1 هزار بار بازدید - 5 سال پیش - Pagination is one of the
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: How To Install MongoDB In 2 Minutes
GitHub Code: https://github.com/WebDevSimplified/P...


🧠 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: Patreon: WebDevSimplified
Twitter: Twitter: DevSimplified
Discord: Discord: discord
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


#Pagination #WDS #API
5 سال پیش در تاریخ 1398/06/26 منتشر شده است.
193,107 بـار بازدید شده
... بیشتر