This is a GitHub User Search app built with React and Redux Toolkit. The app allows users to search for GitHub users, view detailed profiles, repositories, and followers. It also supports pagination and integrates with the GitHub API to fetch real-time data. The app ensures responsive design, making it usable across various devices and screen sizes.
- User Search: Search for GitHub users by their username.
- User Detail View: View detailed information of a user, including their bio, repositories, and followers.
- Repositories and Followers: Explore a user's repositories and followers.
- Pagination: Navigate between pages of search results.
- Error Handling: Gracefully handles loading errors and displays appropriate messages.
- Responsive Design: Works well on different screen sizes and devices.
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/ma3llim007/react_project/
-
Navigate to the project directory:
cd 01_github_user_search -
Install the required dependencies:
yarn
-
Start the development server:
yarn run dev
This will start the development server and open the project in your default browser at
http://localhost:5173.
- Search: Type a GitHub username into the search bar.
- View Results: Users matching the search query will appear on the page as cards.
- Click on a User: Clicking on a user's card will display detailed information, such as their profile, bio, and more.
- Repositories and Followers: Explore a user's top repositories and view their followers.
- Next/Previous: Navigate between pages of search results using the Next and Previous buttons.
To contribute to this project:
-
Clone the repository:
git clone https://github.com/ma3llim007/react_project/
-
Create a new branch for your feature or fix:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Describe your changes here"
-
Push your changes to GitHub:
git push origin feature/your-feature-name
-
Open a pull request on GitHub and describe your changes.
Contributions are welcome! If you find any bugs or have suggestions, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- React for the frontend framework.
- Redux Toolkit for state management.
- GitHub API for the user data.
- Tailwind CSS for utility-first styling.