Skip to content

timonsommer/repo-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo Search

This application allows the user to view all repositories owned by a given GitHub username. Based on ReactJS, the front-end first fetches data for all qualifying repositories using GitHub's GraphQL API. The results can then be further refined through filtering by repository name and the used programming languages.

Important: GitHub Access Token required

For GitHub API queries to be processed correctly, any request needs to be authenticated using an Access Token. After generating a personal Access Token in your GitHub user settings, create an .env file in the project where you provide the token as an environment value:

REACT_APP_GH_TOKEN="< your personal access token >"

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

Future improvements

  • Use server-side filtering and pagination for smaller response payloads and better performance (tradeoff: higher frequency of smaller requests/responses) (WIP branch)
  • Allow direct page navigation in pagination
  • Use URL query parameters to store pagination and filter data for preserving state across page refreshes

About

Find all public repositories owned by a given username.

Resources

Stars

Watchers

Forks