OptiBlogAi icon indicating copy to clipboard operation
OptiBlogAi copied to clipboard

Add backend API routes in Next.js to fetch latest data from GitHub

Open 4darsh-Dev opened this issue 1 year ago • 4 comments

Currently, the application displays static data. To enhance its functionality, backend API routes should be implemented in Next.js to pull the latest data directly from GitHub. This will allow the frontend to display up-to-date information without manual updates.

Requirements:

  • Create backend API routes in Next.js for data fetching from GitHub.
  • Replace static data with dynamic data retrieved from the GitHub API.
  • Ensure the routes are secure and handle errors gracefully.
  • Update relevant frontend components to consume the new API endpoints.

Acceptance Criteria:

  • The application fetches and displays the latest data from GitHub via backend API routes.
  • No static data is shown except as fallback.
  • Proper error handling is implemented for API failures.

4darsh-Dev avatar Jul 16 '25 07:07 4darsh-Dev

Can you please assign it to me

rudrikasharma15 avatar Jul 27 '25 18:07 rudrikasharma15

Hello Maintainers 👋,

I’m a GSSoC'25 contributor and would love to work on this issue “Add backend API routes in Next.js to fetch latest data from GitHub”.

I'm familiar with Next.js API routes and GitHub's REST/GraphQL APIs, and I can efficiently implement endpoints to fetch and serve repository data like commits, issues, contributors, etc. I can also make the routes modular, clean, and secure, following best practices.

Please let me know if I can get started or if you have any preferences for data fields, structure, or auth tokens (in case of rate limits). Looking forward to contributing to this innovative AI blogging platform! 🚀

Thanks! 😄

myselfsneha avatar Jul 28 '25 04:07 myselfsneha

Subject: Replacing Static GitHub Data with Live API Integration

Hi Project Admin,

To enhance the functionality and ensure the displayed GitHub data stays current, I’ve implemented backend API routes in Next.js that dynamically fetch data from the GitHub API. This replaces the previously static data approach.

Key improvements:

  1. Backend routes securely fetch live GitHub data.
  2. Frontend components now consume this dynamic data.
  3. Proper error handling and fallbacks ensure resilience.

This update improves maintainability and user experience significantly. Looking forward to your feedback!

Best regards, Harshil Khandelwal

Harshilkh7 avatar Jul 28 '25 06:07 Harshilkh7

hey devs, Thanks for your interest, But it is already implemented. you can check the backend routes and find modifications.

4darsh-Dev avatar Jul 28 '25 12:07 4darsh-Dev