Skip to content

GitHub Profile Finder is a Next.js application that allows users to search for GitHub profiles and view their repositories using the GitHub API. The app provides a simple interface where users can input a GitHub username, view profile details, and explore the public repositories of the searched user.

License

Notifications You must be signed in to change notification settings

Ayomide0123/github_profile_finder

Repository files navigation

githubProfileFinder

A Next.js application that uses the GitHub API to find GitHub profiles. This application allows users to search for GitHub users by username and view their profile information, including public repositories.

Features

  • Profile Search: Users can enter a GitHub username to fetch and display the user's profile and repositories.
  • Dynamic Routing: Each user's profile can be accessed through a unique URL, e.g., /user/octocat.
  • Error Handling: User-friendly error messages for scenarios such as user not found, no repositories, or API request failures.
  • Dark Mode: A toggle to switch between light and dark themes for a better user experience.

Dark Mode Toggle

The application features a dark mode toggle that allows users to switch between light and dark themes. When the button is clicked, the application checks if the "dark" class is currently applied to the document. If it is, dark mode is enabled; if not, light mode is used. This toggle enhances the user experience by providing a comfortable viewing option for users in low-light environments.

How It Works

  • Users input a GitHub username in the search bar and press the search icon or hit enter.
  • The app makes an API call to GitHub and retrieves the profile and public repositories for the entered username.
  • Repositories are displayed with details such as name, description, stars, and forks.
  • The repositories are paginated, with up to 30 repositories shown per page. Users can navigate between pages if more repositories are available.
  • The app includes a dark mode toggle button, allowing users to switch between light and dark themes.

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository and navigate to the project directory:

    git clone https://github.com/Ayomide0123/github_profile_finder.git
    cd github_profile_finder
  2. Install the dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Run the development server:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  4. Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying the files in the app directory. The page auto-updates as you edit the files.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

GitHub Profile Finder is a Next.js application that allows users to search for GitHub profiles and view their repositories using the GitHub API. The app provides a simple interface where users can input a GitHub username, view profile details, and explore the public repositories of the searched user.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published