A simple web app that integrates with the GitHub API to give you a clean dashboard of all your issues and pull requests across repositories. Built with Next.js + Tailwind CSS and GitHub OAuth.
- 🔑 Login with your GitHub account (OAuth)
- 📋 View all issues and pull requests assigned to you or created by you
- 🏷️ See repository name, labels, status (open/closed), and direct GitHub links
- 🔍 Filter by:
- Open vs. Closed
- Assigned to me vs. Created by me
- Repository
- ⚡ Responsive UI with loading & error states
- Next.js – React framework with API routes
- Tailwind CSS – Modern utility-first CSS
- GitHub API – Issues & PRs data
- NextAuth.js – Secure GitHub OAuth
- Node.js 18 or higher
- npm or yarn
- A GitHub account
git clone https://github.com/lassestilvang/github-issue-pr-dashboard.git
cd github-issue-pr-dashboard- Go to GitHub → Developer Settings → OAuth Apps.
- Click New OAuth App.
- Fill in the following details:
- Application name: GitHub Issue & PR Dashboard (or any name you prefer)
- Homepage URL:
http://localhost:3000(for local development) - Authorization callback URL:
http://localhost:3000/api/auth/callback/github - Description: (optional) A dashboard for viewing GitHub issues and PRs
- Click Register application.
- After creation, copy the Client ID and Client Secret (you'll need these for environment variables).
Create a .env.local file in the project root directory:
# GitHub OAuth Credentials
GITHUB_CLIENT_ID=your_github_client_id_here
GITHUB_CLIENT_SECRET=your_github_client_secret_here
# NextAuth Configuration
NEXTAUTH_SECRET=your_random_secret_here
NEXTAUTH_URL=http://localhost:3000Notes:
- Replace
your_github_client_id_hereandyour_github_client_secret_herewith the values from your GitHub OAuth app. - Generate
NEXTAUTH_SECRETusing:openssl rand -base64 32(or use an online generator). NEXTAUTH_URLshould behttp://localhost:3000for local development.
npm installnpm run devOpen http://localhost:3000 in your browser. You should be able to log in with GitHub and view your issues/PRs.
-
Push to GitHub:
- Create a new repository on GitHub.
- Push your code:
git add .,git commit -m "Initial commit",git push origin main.
-
Deploy on Vercel:
- Go to Vercel and sign in.
- Click New Project.
- Import your GitHub repository.
- Vercel will auto-detect Next.js; click Deploy.
-
Configure Environment Variables in Vercel:
- In your Vercel project dashboard, go to Settings → Environment Variables.
- Add the same variables as in
.env.local:GITHUB_CLIENT_IDGITHUB_CLIENT_SECRETNEXTAUTH_SECRETNEXTAUTH_URL(set to your production URL, e.g.,https://your-app.vercel.app)
-
Update GitHub OAuth App for Production:
- Go back to your GitHub OAuth app settings.
- Update the Authorization callback URL to:
https://your-app.vercel.app/api/auth/callback/github - Save changes.
-
Redeploy:
- After setting environment variables, trigger a new deployment in Vercel.
Your app should now be live at https://your-app.vercel.app.
- OAuth Login Issues: Ensure your GitHub OAuth app's callback URL matches exactly (including protocol and trailing slash).
- Environment Variables: Double-check that all required env vars are set in both local
.env.localand Vercel. - Build Errors: Run
npm run buildlocally to check for issues before deploying. - NEXTAUTH_URL: For production, ensure
NEXTAUTH_URLis set to your actual Vercel domain.