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.
- 🔧 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
git clone https://github.com/nurf21/github-random-repository.git
cd github-random-repositorynpm installnpm run devThe app will be available at http://localhost:5173.
npm run testThe project uses vitest-browser-react for testing in real browser environments.
- Language list sourced from kamranahmedse/githunt
- Project template and inspiration from roadmap.sh
- Random icons created by noomtah from Flaticon
This project is open source and available under the MIT License.