MLSAKIIT / devblogs-frontend

DevBlogs : A blogging website made for developers by developers. This repository contains the frontend for the project
MIT License
10 stars 26 forks source link

Integrate Pagination for /get-blogs route #21

Open dead8309 opened 1 month ago

dead8309 commented 1 month ago

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

coder-pink commented 1 month ago

hi @dead8309 , Can you assign this to me

DevyManish commented 3 weeks ago

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

dead8309 commented 3 weeks ago

It's yours!

DevyManish commented 3 weeks ago

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 commented 3 weeks ago
  1. I think it would be the home page.
  2. the api endpoint to fetch blogs is /api/blogs
DevyManish commented 3 weeks ago

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 commented 3 weeks ago

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