Skip to content

A React app that fetches and displays a random GitHub repository based on the selected programming language using the GitHub Search API.

Notifications You must be signed in to change notification settings

nurf21/github-random-repository

Repository files navigation

🔍 GitHub Random Repository Finder

A beginner-friendly React project that allows users to discover random open-source GitHub repositories by programming language. This project introduces working with external APIs, asynchronous requests, UI states, and basic component testing.

✨ Features

  • 🔧 Select a programming language from a dropdown
  • 🔁 Fetch a random repository using the GitHub Search API
  • 📊 View repo name, description, stars, forks, and open issues
  • 🌘 Supports dark mode with Tailwind CSS
  • ♻️ "Refresh" button to get a different random repository
  • ❌ Graceful handling of loading, error, and empty states

🚀 Live Demo

📍 View it here


📦 Getting Started

1. Clone the Repository

git clone https://github.com/nurf21/github-random-repository.git
cd github-random-repository

2. Install Dependencies

npm install

3. Run the App

npm run dev

The app will be available at http://localhost:5173.


🧪 Run Tests

npm run test

The project uses vitest-browser-react for testing in real browser environments.


🛠️ Built With


🧑‍💻 Credits


📜 License

This project is open source and available under the MIT License.

About

A React app that fetches and displays a random GitHub repository based on the selected programming language using the GitHub Search API.

Topics

Resources

Stars

Watchers

Forks