Test ID: 2023UIDP02
Problem Statement
The programming exercise to build a react app to list the repos of the specified github user from
the provided starter app
Fork codesandbox or stackblitz
Codesandbox link seems to give an error if the user is already logged into his/her github repo. In such a
case, logout, click the link and then log back in.
To fetch github repos, use the following endpoint:
https://api.github.com/users/<username>/repos
In the above url, <username> should be replaced with the appropriate username entered by the
user. The API expects the following content type to be accepted by the caller.
application/vnd.github.v3+json
Fields relevant to the exercise from the output are
1. Form submission
When the app is run, it should display the following:
When the user clicks Submit, a list of public repositories of the user should be displayed. For
example, if username spring is entered
Test ID: 2023UIDP02
2. Error handling
If the specified username is invalid, an error message should be displayed. For instance, if
nonexistentgithubrepo is a non-existent github account
3. Validation and ordering
Submit button should be grayed out/disabled by default. It should be enabled when the user
enters some username.
The repositories should be sorted by descending order of the size.
4. Filtering
By default, the app should exclude repositories that are forked (i.e. fork: true)
If the user checks the box Include forks, then the forked repositories should also be included in
the result.
Test ID: 2023UIDP02
Finished solution
View here
How to submit
Share the url/link to your CodeSandbox or Stackblitz fork/solution to [email protected].
Note that solutions shared via zip files or any other means will not be accepted.
Evaluation Criteria
The solution will be evaluated based on the following criteria
● Functionality - does the application work as expected
● Design - how the application is designed
● Programming - features of the language and framework used