A simple and fast support ticket system built with Next.js 14, TypeScript, Prisma ORM, Neon Postgres database, and Sentry for error tracking and performance monitoring.
- Create, view, and manage support tickets
- User authentication with JWT tokens
- Track errors and performance using Sentry
- Responsive design with Tailwind CSS
- Secure session handling with HttpOnly cookies
- Built with modern Next.js App Router & Server Actions
- Next.js 14 (App Router)
- TypeScript
- Prisma ORM
- Neon.tech (Postgres Database)
- Tailwind CSS
- Sentry (Error & Performance Monitoring)
Clone the repository:
git clone https://github.com/bradtraversy/quick-ticket
cd quickticketInstall dependencies:
npm installCreate a new Sentry Project and run the Wizard command it gives you. This will create a new .env-sentry-plugin file. Rename it to .env. This will have your Sentry Auth Token in it.
Create a Neon Postgres database and add the connection string to your .env file:
DATABASE_URL="postgresql://<username>:<password>@<host>:<port>/<database>?sslmode=require"Add an auth secret to your .env file. You can run the following command to generate one:
openssl rand -hex 32Then add it to your .env file:
NEXTAUTH_SECRET="<your_secret>"Run the following command to generate the Prisma client and create the database tables:
npx prisma migrate dev --name init
npx prisma generateRun the development server:
npm run dev