Skip to content

Instantly share code, notes, and snippets.

@tothandras
Last active March 28, 2024 11:26
Show Gist options
  • Save tothandras/65d5fc5e875f3f9be0fbc091e8b30e5a to your computer and use it in GitHub Desktop.
Save tothandras/65d5fc5e875f3f9be0fbc091e8b30e5a to your computer and use it in GitHub Desktop.
Remote coding test (andras@tailfin.cloud)

GitHub repositories

Implement a single page application using React. Keep your code in version control, create a public GitHub repository.

Please don't use Next.js!

Tasks

  • Use the GitHub v4 GraphQL API to fetch information about a given user's repositories
  • The user name should come from an input field and should be persisted as a query parameter whenever the input changes (eg. link as http://localhost:3000?user=tothandras)
    • Add a search button to execute the query or auto execute it when the input changes
  • The list elements should show the following information: name, short description, is it a fork?, last commit date, issue count, pull-request count
  • The list elements should be an external link to the repository
  • Use pagination for the list (consider user experience, for example: disable next button when there is no more pages) (https://relay.dev/graphql/connections.htm)
  • Show placeholder for an empty list, when the user input is empty or there are no repositories for the given user
  • Show an error message when there is no user with the given name
  • Provide documentation for how to run your application locally (README.md)
  • Let your imagination fly: UX, styles, other functionalities

⚠️ Don't commit your GitHub token!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment