GitHub Account Finder is a simple React application that allows users to search for GitHub accounts based on usernames or email addresses. It leverages the GitHub API to retrieve relevant user information and displays the results in a clean and user-friendly interface.
- User Input: Users can input a GitHub username or email in the search field.
- Search: Clicking the "Search" button initiates the search for GitHub accounts based on the entered query.
- Results Display: The app displays user cards for each matching GitHub account, showing the user's avatar, GitHub profile link, and username.
- React: A JavaScript library for building user interfaces.
- CSS: Styling the components for a visually appealing and responsive design.
- GitHub API: Utilized for fetching GitHub account information based on user input.
- Clone the repository to your local machine.
- Install dependencies using
npm install
. - Run the application with
npm start
.
- Open the application in your web browser.
- Enter a GitHub username or email in the search input field.
- Click the "Search" button to retrieve and display matching GitHub accounts.
- View the results in the user card format, showcasing avatar, profile link, and username.
App.js
: Main component containing the application logic and structure.user-card
Folder: Contains theUserCard
component responsible for displaying individual GitHub user information.App.css
: Stylesheet for styling the components.
- Input Handling: User input is captured using the
handleOnChange
function, updating theinputValue
state. - Search Trigger: Clicking the "Search" button triggers the
onSearchSubmit
function. - API Call: The app makes an asynchronous API call to the GitHub API to find matching accounts based on the user's input.
- Results Display: The retrieved results are displayed in user cards using the
UserCard
component.
- This project was created by Sharad Singh Kushwaha.
- GitHub API documentation: GitHub API