GitHub Finder is a React application that allows users to search for GitHub profiles by username. It fetches and displays user data from the GitHub API, providing a quick and easy way to find GitHub profiles. I am using:
- GitHub API
- framer-motion to create a nice transition between pages.
- 'axios' instead of 'fetch' for getting the GitHub data.
- Hooks (useState, useEffect, useParams, useNavigate).
- react-router-dom features to redirect the user to the profile page.
- Search for GitHub users by username
- View user profiles with details such as name, avatar, and repositories
- Responsive and user-friendly interface
See DEMO here
-
Clone the repository:
git clone https://github.com/wellfc/github-finder.git cd github-finder
-
Install dependencies:
npm install
To run this project, you will need to add the following environment variable to your .env file:
REACT_APP_GH_TOKEN=your_github_token
-
Start the development server:
npm start
-
Open http://localhost:3000 in your browser to view the app.
-
Enter a GitHub username in the search bar and click "Search" to view the user's profile.
This project is licensed under the MIT License.