Add backend API routes in Next.js to fetch latest data from GitHub
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.
Can you please assign it to me
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! 😄
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:
- Backend routes securely fetch live GitHub data.
- Frontend components now consume this dynamic data.
- Proper error handling and fallbacks ensure resilience.
This update improves maintainability and user experience significantly. Looking forward to your feedback!
Best regards, Harshil Khandelwal
hey devs, Thanks for your interest, But it is already implemented. you can check the backend routes and find modifications.