A lightweight dashboard that displays GitHub-based engineering metrics grouped by team. Built with Next.js and deployed on Vercel.
- Display team-based metrics:
- Number of PRs Merged
- Average PR Cycle Time
- Number of PRs Reviewed
- Filter metrics by time period (1 day, 7 days, 30 days)
- Auto-refresh metrics hourly
- Responsive design for mobile and desktop
- Clone the repository
- Install dependencies:
npm install
- Set up GitHub App authentication:
- Go to your GitHub App settings
- Generate a new private key
- Create the file
src/key/key.pemand paste the private key content - Update
.env.localwith your GitHub App details:GITHUB_APP_ID=YOUR_APP_ID_HERE GITHUB_INSTALLATION_ID=YOUR_INSTALLATION_ID_HERE
- Update the team mapping in
public/data/team-mapping.csv
Run the development server:
npm run devRun tests:
npm testWatch mode:
npm run test:watchBuild for production:
npm run buildThe project is configured for deployment on Vercel. Connect your GitHub repository to Vercel for automatic deployments.
GITHUB_APP_ID: Your GitHub App ID (fill in your own)GITHUB_INSTALLATION_ID: Your GitHub App Installation ID (fill in your own)GITHUB_PRIVATE_KEY_PATH: Path to your GitHub App private key (default: src/key/key.pem)