An advanced issue tracker built with Next.js, Prisma, PostgreSQL, and Sentry for error monitoring.
- Dashboard with issue summary, chart, and latest issues
- Issue list with filtering, sorting, and pagination
- Assign users to issues
- Authentication with NextAuth.js
- Error monitoring and tracing with Sentry
- Responsive UI using Radix UI and Tailwind CSS
npm install
# or
yarn install
# or
pnpm installCopy .env.examle to .env and fill in the required values:
cp .env.examle .env
Set up your database connection, NextAuth, Google OAuth, and Sentry credentials in .env.
Run Prisma migrations:
npx prisma migrate deploy
# or for development
npx prisma migrate dev
npm run dev
# or
yarn dev
Open http://localhost:3000 to view the app.
Sentry is configured for error monitoring and tracing on both server and client. See:
sentry.server.config.ts,sentry.edge.config.ts,src/instrumentation.ts,src/instrumentation-client.ts- Example error page:
/sentry-example-page - Example API route:
/api/sentry-example-api
next-issue-tracker/
├── prisma/ # Prisma schema and migrations
│ ├── schema.prisma
│ └── migrations/
├── public/ # Static assets
├── src/
│ ├── app/ # Main Next.js app, pages, and components
│ │ ├── api/ # API routes (Next.js route handlers)
│ │ ├── issues/ # Issue-related pages and components
│ │ ├── _components/ # Shared UI components
│ │ └── ...
│ ├── instrumentation.ts # Sentry instrumentation (server/edge)
│ └── instrumentation-client.ts # Sentry instrumentation (client)
├── sentry.server.config.ts # Sentry server config
├── sentry.edge.config.ts # Sentry edge config
├── package.json
├── .env.examle
└── README.md
src/app/page.tsx- Dashboard pagesrc/app/issues/page.tsx- Issue list pagesrc/app/global-error.tsx- Global error handlersrc/app/sentry-example-page/page.tsx- Sentry test page
dev- Start development serverbuild- Build for productionstart- Start production serverlint- Run ESLint