Create A Paginated API With Node.js - Complete Tutorial
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...
GitHub Code: 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: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#Pagination #WDS #API
Пікірлер: 249
This channel is criminally underrated. You should have blown up by now. Thank you for the quick and thorough explanations.
@WebDevSimplified
4 жыл бұрын
Thanks. I feel my channel has already blown up
Video title should be "How to master backend pagination in 24 minutes"... Amazing demo in a very short time, learning with you really rocks man. Thank you :D
@WebDevSimplified
4 жыл бұрын
Thank you so much! I try to keep my videos as short as possible, even though sometimes they get a bit long like this video. I'm glad you enjoyed every minute of it, though. :)
@_.sunnyraj._
3 жыл бұрын
*rock
@ishraq95
3 жыл бұрын
@@WebDevSimplified You are great man.. Thanks alot..
@mdmohiuddin3141
3 жыл бұрын
24 minutes for WDS means 1 hour and 30 minutes for other
@021bethineedilakshmideepak4
2 жыл бұрын
@liorocker1 can we program pagination at the front end level?
I appreciate how you dive deeper and show useful VS Code extensions and talk a little about async, await and promises. Great job!
Your didactics are simply amazing, man. It must be the 3rd or 4th time you solve an issue of mine in less than 1/3 of an already short video. AND you managed to solve another unrelated question in the meantime. Holy crap, you're an unsung hero.
A comprehensive tutorial on the pagination of data fetched from MongoDB. Smoothly and fluently presented. Thank you, Kyle. PS This has come very fortuitously when I most needed it! - It simply popped up on my KZread Home Page by some weird coincidence. :-) {2021-08-17}, {2022-07-16}, {2022-10-12}
That humble voice makes everything seem easy and indeed they were easy... Thanks for the tutorial,Stay Blessed
@WebDevSimplified
4 жыл бұрын
I'm really glad I could help.
@jordantaylor8549
4 жыл бұрын
Yes I agree . I feel like a lot of creators underestimate this actually
This is quick, to the point, with excellent and easy explanations. Really enjoyed this and all of your videos ive come across. Thank you. Told all my classmates about your channel!
I like the explanatory style. It was simple yet abstracted enough that I watched this once and was able to immediately apply this to a Lambda function, no Express in my setup. Thank you
Took only 4 minutes for WDS to build a simple yet working API with the minimal file structure 👍 man, you're always so concise and effective :) Exactly what I was looking for.
Amazing tutorial, very clear and simple to follow. Thanks a lot!
I always learn so much from your videos! You're a really great teacher. Keep on keeping on! 👍
Web Dev Simiplified has really Simplified my life! Thank You for this amazing tutorial 😊
Thanks so much for these videos Kyle, I really learn a lot from them 😃
Thanks for the amazing short , crisp video. You have explained to the point.
Everything here from explanation to coverage on this concept is picture perfect 👍.
You are awesome. I was interning and was assigned this task. I was planning to quit but then this video happened. Thanks 3000
This is what I exactly need to make a paginated API in mirage js, Thank a lot. Please keep up the good work.
Great video. Helped me clearly understand the pagination in one shot. Superb!!! Thank you!!
SO helpful! Thank you for putting this together.
Loved how he explained the simple yet powerful pagination concept in Node.js! Thank you very much. +subbed
Thanks, man I needed this for a personal project.
Hands down, incredible video
Simple and Clean, thank you so much.
Thank you for this. It's frightening how you made it easy to understand something that seems so complex. :)
The pacing of your videos is sublime.
Kyle 😀.. You makes things easy honestly. 👍..Stay happy and blessed mate
man I learned more than I needed thanks!
Thanks for the pagination tutorial. It helped me a lot in doing my interview assignments
This is spectacularly well done and explained. Holy cow!
Amazing demo! Thanks!
thank you WEB DEV SIMPLIFIED, you explained me exacltly what i wanted and how i wanted it be explained.
you are a great instructor man!!
Only one word for you mate, "Legendary!"!!
Youngman you are great ! your videos are excellent and very clear.
Bro u don't know how much I love your videos 😭 do simplified.
I really love how he just make it simple
Thank you, bro!! You are very clear teaching!
Brilliant explanation, thank you!
thanks for your tutorial, you explained it all very simple and clear
You're awesome ! Thanks a lot for each video 🙇♂️
Thanks Man, You helped me a lottttt to understand this concept and of course in the one go, Means a lot to me, Again Thanks Have a Great Day!
After watching some of your old videos, I press "Like" first and then watch your latest videos.😎
@WebDevSimplified
4 жыл бұрын
Nice!
That was quite helpful ! Great Video
thank you!! this is awesome!!! 형 덕분에 막혔던 부분 뻥 뚫렸습니다.
This is amazing! Thank you!
2022 and this is still Fantastic!
Thanks this was very helpful
insane class, straight and killer.
you saved my life bro, thanks in advance
Awesome tutorial. Thank you.
Thank You its very use full and very clear.
Amazing, thank you!
this is amazing . you are awesome. thanks you so much. make easy for us :)
wow .....this video helped me alot ...thanks for making this type of tutorial/video 👍
This is fantastic, thank you for your very clear teaching. Any chance you have available or could produce a pagination tutorial explaining the process of pulling data from a public API (not from a database) and paginating those results?
Great video kyle, always learn something from you, do you've any video about combinig different APIS in Node please ?
Thank you so much!
thank you sir its really graet to meet u again in my journey
Awesome, thanks!
You are awesome. The way of explanation is awesome
This is really amazing sir.......
thanks a lot, im subscribing this video really helps
you saved my time,thanks
I love this guy !
This is gold!
thank you so much......Way of explanation was awesome.......
Great Instructor.
Thank you so much ❤️🙌🏼
Thanks a lot this really helped. :D
thank you. how do you do pagination on react
I would like to point out that in pagination, there are 2 techniques you can use. one is LIMIT/OFFSET approach, which this video shows. An alternative is KEYSET/SEEK method. It should be noted with LIMIT/OFFSET approach, your users will see some omitted/duplicate items in your pages when someone simultaneously adds/removes some data. So if you are implementing such as infinite scroll on a many-user web-app, go for KEYSET approach instead for stable data retrieval.
@bhupinderbhattarai244
2 жыл бұрын
can you provide me source how to implement KEYSET approach?
thanks very much broww !, u did help me a lot
thanks for share! excelent explanation!!!
Hi best tutorial I've seen for pagination! Quick question though, in your mongoose example you're finding all results inside a collection, I've got some some routes where I want to paginate every results and then I've got other routes where I'm queering the collection for specific results that I then want to paginate, how would I handle that in the middleware? Thank you
every time you are save me bro, thank you
Thank you for everything.
Very impressiv!! Downvoters should leave a reason as to why they downvote - because I do not see any reason!
-you are the best! thanks
thank you very much for great content, handsome developer.
Thanks for your amazing content
that was so great
Awesome explanation man!!
@WebDevSimplified
4 жыл бұрын
Thanks
this is it! thank you so muchhh
You are awesome, Thanks a lot for this video
I always wonder why your logical thinking and solutions are concise and to the point?? do u have an explanation for that and how can a person feel that confident about programming??? what sources you use what university you attended???
Ur videos are in the most understandable way compared to others. Thanks you so much.. and i was hoping that is there any way that you create a video about pgination with Search bar.. pls 🙏
Hey Kyle, you provide us gold at worth of iron. You are Truly a great Developer.
thank you for much :)
God bless you, bro!
Fantastic!!!!!!
Thank you!!!
u r awesome bruh. Love u
Think you could make a video on using Datatables? I'm trying to do server side processing with MongoDB with pagination. Also trying to figure out how to add buttons to each row that would change a field and a button to display a field that isn't in the table with a modal popup. Love the videos man!
Well done
Thanks!!💻
😍😍 Awesome
Great video
Thanks a lot
well explained
Omg! It's so easy, thank you so much my friend. But, I'm gonna do that without Express, because I 'hate' Express hahaha. =)