A Next.js application that allows you to search and explore GitHub user profiles.
- Create a
.env.localfile in the root directory with the following content:
NEXT_PUBLIC_GITHUB_TOKEN=your_github_token_here
- To get your GitHub token:
- Go to GitHub Settings > Developer Settings > Personal Access Tokens
- Generate a new token with the
read:useranduser:emailscopes - Copy the token and paste it in your
.env.localfile
- Search GitHub users by username
- Filter users by location
- View detailed user profiles including:
- Repositories
- Followers
- Following
- Dark mode support
- Responsive design
- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
The GitHub API has rate limits:
- Without authentication: 60 requests per hour
- With authentication: 5,000 requests per hour
It's recommended to set up a GitHub token to avoid rate limiting issues.