A React application that allows you to search for GitHub users and view their repositories. Built with React, TypeScript, Vite, Tailwind CSS and Shadcn UI.
- Search for GitHub users by username (up to 5 results)
- View user repositories with details (name, description, language, stars, etc.)
- Responsive design with modern UI components
- GitHub API integration with rate limiting support
-
Clone the repository
-
Install dependencies:
pnpm install
-
Create a
.envfile in the root directory and add your GitHub personal access token:VITE_GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
- Go to GitHub Settings
- Click "Developer settings" → "Personal access tokens" → "Tokens (classic)"
- Click "Generate new token (classic)"
- Select the "public_repo" scope (for public repositories)
- Copy the generated token and add it to your
.envfile
Note: The token is optional but recommended to avoid rate limiting. Without a token, you're limited to 60 requests per hour. With a token, you get 5,000 requests per hour.
Start the development server:
pnpm devBuild for production:
pnpm build- React 19
- TypeScript
- Vite
- Tailwind CSS
- shadcn/ui components
- GitHub API v3
- Lucide React icons
This app uses the GitHub API v3:
- User search:
GET /search/users - User repositories:
GET /users/{username}/repos