Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Pagination for /get-blogs route #21

Open
dead8309 opened this issue Oct 14, 2024 · 7 comments
Open

Integrate Pagination for /get-blogs route #21

dead8309 opened this issue Oct 14, 2024 · 7 comments
Assignees
Labels
feature hacktoberfest For participants of hacktoberfest pagination Related to pagination and data loading

Comments

@dead8309
Copy link
Collaborator

dead8309 commented Oct 14, 2024

Set up pagination for the /get-blogs API route and ensure the frontend dynamically displays blog posts based on the current page. Make use of the LoadMoreButton component to fetch and display additional posts when clicked.

Reference: Pagination Tutorial

@dead8309 dead8309 added feature hacktoberfest For participants of hacktoberfest pagination Related to pagination and data loading labels Oct 14, 2024
@coder-pink
Copy link
Contributor

hi @dead8309 , Can you assign this to me

@DevyManish
Copy link

i do like to take on this issue please assign it to me!

@dead8309 dead8309 assigned DevyManish and unassigned coder-pink Oct 19, 2024
@dead8309
Copy link
Collaborator Author

It's yours!

@DevyManish
Copy link

Hey @dead8309, I have a few questions:

  1. On which page are all the blogs displayed? I only see these routes defined in the code: children: [ { path: "/", element: <Home /> }, { path: "/create", element: <CreateBlogs /> }, { path: "/login", element: <Login /> }, { path: "/register", element: <Register /> }, ],
  2. What is the backend endpoint from which you are fetching the blog posts?

Or

Should I create a demo page of my own to implement the requested pagination feature or if there is an existing page where this functionality should be added?

@dead8309
Copy link
Collaborator Author

  1. I think it would be the home page.
  2. the api endpoint to fetch blogs is /api/blogs

@DevyManish
Copy link

I am getting this error on the homepage and tried to look at the code but couldnt resolve it and Please share the full endpoint like https://www.devblogs-backend.com/api/blogs.

image

@dead8309
Copy link
Collaborator Author

The backend is not hosted anywhere you would have to run it locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature hacktoberfest For participants of hacktoberfest pagination Related to pagination and data loading
Projects
None yet
Development

No branches or pull requests

3 participants