This project is created for learning purposes. It serves as a basic example of how to interact with the GitHub API using a React application. The implementation is kept simple to help beginners understand the core concepts without being overwhelmed by complexity.
- Search for GitHub repositories by name.
- Search for GitHub users by username.
- View repository details such as stars, forks, and issues.
- View user details including repositories & contributors.
Make sure you have the following installed on your system:
-
Clone the repository:
git clone https://github.com/YOUR-USERNAME/github-search.git cd github-search -
Install the dependencies:
npm install # or yarn install
Create a .env file in the root of the project and add your GitHub API token:
REACT_APP_GITHUB_API_TOKEN=your_github_api_token
Create a .env file in the root of the project and add your GitHub API token:
REACT_APP_GITHUB_API_TOKEN=your_github_api_token
You can generate a GitHub API token here.
Start the development server:
npm start
# or
yarn start
The application will be available at http://localhost:3000.
- Enter a repository name or username in the search bar and press enter.
- Click on a repository or user from the search results to view more details.
- React - A JavaScript library for building user interfaces.
- TypeScript - A typed superset of JavaScript.
- GitHub API - The REST API for GitHub.
Feel free to extend the functionality of this project and add more features. Some ideas for enhancements include:
- Pagination: Add support for paginating through search results.
- User Profiles: Enhance the user search functionality to display more detailed user profiles.
- Advanced Search: Implement advanced search options for repositories and users.
- Styling: Improve the UI/UX with better styling and responsive design.
- Error Handling: Add more robust error handling and loading states.
Contributions are welcome! Please fork the repository and create a pull request.
- Fork the repository.
- Create a new branch: git checkout -b feature/your-feature-name.
- Make your changes and commit them: git commit -m 'Add some feature'.
- Push to the branch: git push origin feature/your-feature-name.
- Create a pull request.
- GitHub for providing the API.
- React for the UI library.





