This project was bootstrapped with Create React App.
User can use this project to search users on github, then get repositories information of searched user.
Infinite Scroll
Use Intersection Observer Web API
to achieve infinite scroll and only load more repositories while scrolling to current bottom boundary.
react-router-dom
Use <HashRouter>
to achieve SPA and use useNavigate
and useParams
to request data of searched user and repositories.
styled-components
Use styled-components to manage all CSS code in js files.
Github REST API
Follow information of Repositories provided by Github REST API, Using axios
to send request and render components by response.
In the project directory, you can do:
Search User
At Home page, you can enter username that want to search in the search bar, then Click search button or press Enter to search user on Github.
User's Repositories
https://shanyujung.github.io/github-repository-searcher/#/users/{username}/repos
After click search button,project will lead user's repository page.
Single Repository
https://shanyujung.github.io/github-repository-searcher/#/users/{username}/repos/{repoName}
You can click each repository ,then project will lead to selected repository page.
Updated List
Updated Detail 2022-5-24
:Intersection Observer Web API
Loading Screen
loadingSpinner
while request data and placeholder of user avatar to upgrade user experience User's Repositories page.Updated Detail 2022-4-19
:styled-components
Updated Detail 2022-4-14
:User's Repositories
Single Repository