github-search is a project to search Github repositories
Node v12 or higher
Add personal-access-token to .env
REACT_APP_AUTH=YOUR_TOKEN
npm install
npm start
- react-bootstrap
- react-router-dom
- react-spinners
- useContext + useReducer
- ...
The project has Search and RepoList two main components
Search save input change and url params word
as search
to context
RepoList use react useEffect
to fetch repos depends on context search
change, and useRef
to record last repo
- Debounce input change
- Highlight keywords in repo tile or description
- Use intersectionOberver to load more repos
- Pasrse url params as input
- Notificate user when too much requests