Create A Paginated API With Node.js - Complete Tutorial

Published: 17 September 2019
on channel: Web Dev Simplified
210,298
6k

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


#Pagination #WDS #API


On this page of the site you can watch the video online Create A Paginated API With Node.js - Complete Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Web Dev Simplified 17 September 2019, share the link with friends and acquaintances, this video has already been watched 210,298 times on youtube and it was liked by 6 thousand viewers. Enjoy your viewing!