This repository is the companion to the "Build a Github repositories search page" practice exercise.
Build a Github Repositories search page, with sorting and pagination. You can use the Github REST API /search/repository endpoint to query the data. The results should be paginated; by default, show 10 repositories per page.
Users should be able to:
- search repositories by name
- choose how many items to show per page
- choose what to sort by: best-match, stars, most-updated
You can use React Query for fetching the data. If you hit the rate limit, you can work with a mock JSON file of the data in development, or alternatively, setup an API key to increase your rate limit.
The search is inspired by this Github page: https://github.com/search?q=nextjs&type=repositories&s=&o=desc
npm installnpm run dev