Search through the GitHub API to retrieve user information when a valid username is given. It should display avatar, username, followers count, repository count, top 4 repositories based on forks and stars.
-
User can enter a username -
User can click on search button to retrieve information -
User can see the avatar, username, followers and repository count of searched user -
User can see the top 4 repositories of searched user -
User should get an alert if the username is not valid
-
User can toggle dark/light mode -
Selected mode should persist when user comes back to the app again
To get the data you need to communicate with GitHub API. you can either