NextJS + Postgres and Error Monitoring - Full Stack Support Ticketing System

Traversy Media May 13, 2025
Video Thumbnail

About

No channel description available.

Video Description

In this project, we will create a support ticket system with Next.js, Neon PostgreSQL, Prisma and we will implement error tracking and logging with Sentry. Sentry: https://sentry.io/signup/??utm_source=traversy&code=traversy Neon: https://fyi.neon.tech/2tm Code: https://github.com/bradtraversy/quick-ticket Timestamps: 0:00 - Intro 3:24 - Project Plan (Slides) 8:33 - Next.js App Setup 12:18 - Sentry Setup 15:30 - Sentry Example 20:21 - Neon PostgreSQL Setup 21:40 - Prisma Initiliazation 23:00 - Ticket Model 25:10 - Prisma Migration & Generate Client 26:51 - Prisma Studio 27:23 - Git Init 28:27 - Welcome Page 32:30 - New Ticket Page 34:20 - Start New Ticket Action 38:30 - useActionState Hook 41:31 - Form Validation & Sentry Logging 45:50 - Sentry Log Level 47:00 - Capture Exceptions 50:20 - Global Prisma Instance 54:00 - Sentry addBreadcrumb 55:40 - Test New Ticket Functionality 56:47 - Sentry Helper Function 1:05:34 - Redirect On Submit 1:08:15 - Sonner Notifications 1:11:00 - Custom Ticket Form Component 1:13:59 - Get Tickets Action 1:16:10 - Show Tickets 1:23:12 - Priority Colors 1:25:50 - Get Single Ticket Action 1:28:30 - Ticket Details Page 1:34:43 - Navbar 1:37:25 - Start Custom Authorization 1:38:40 - User Model & Ticket Relation 1:44:00 - JWT Explanation 1:46:11 - Authentication Flow 1:48:58 - Create Main Auth File 1:50:58 - signAuthToken Function 1:53:47 - verifyAuthToken Function 1:56:40 - setAuthCookie Function 1:59:54 - getAuthCookie Function 2:01:01 - removeAuthCookie Function 2:02:30 - Register Users 2:14:40 - Register Page & Form Hook Up 2:20:40 - Get Current User 2:25:15 - Conditional Nav Links 2:27:15 - Logout User 2:35:00 - Login Page & Action 2:48:30 - Check Sentry Logs 2:51:00 - Ticket Authorization & Access Control 2:58:57 -TicketItem Component 3:01:55 - Close Ticket 3:16:25 - Disable Closed Tickets

Boost Your Full Stack Dev Setup

AI-recommended products based on this video

Loading...
Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

(48,912)
$15.99$12.79
FREE delivery Wed, Feb 18 on your first order
1K+ bought in past month
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

(35,879)
$49.99$44.99
FREE delivery Mon, Jan 26
1K+ bought in past month
Loading...
Logitech G502 Hero High Performance Wired Gaming Mouse, Hero 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC/Mac, Black

Logitech G502 Hero High Performance Wired Gaming Mouse, Hero 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC/Mac, Black

(55,508)
$49.98$44.98
FREE delivery Thu, Jan 29
2K+ bought in past month
Loading...
Dell UltraSharp 24 Monitor - U2424H

Dell UltraSharp 24 Monitor - U2424H

(43)
$309.44$262.14
FREE delivery Aug 22 - 25Only 8 left in stock.
Loading...
Dell UltraSharp U2723QE 27" 4K UHD WLED LCD Monitor - 16:9 - Black, Silver EPEAT

Dell UltraSharp U2723QE 27" 4K UHD WLED LCD Monitor - 16:9 - Black, Silver EPEAT

(13)
$699.99$650.99
FREE delivery Tue, Oct 7
50+ bought in past month
Loading...
LONMEN 15.6 Inch Laptop Shoulder Bag,Computer Sleeve Carrying Case for Lenovo 15.6" Ideapad 330/15.6" HP EliteBook 850 G3 / Dell New Latitude 3590 Chromebook Ultrabook (Black)

LONMEN 15.6 Inch Laptop Shoulder Bag,Computer Sleeve Carrying Case for Lenovo 15.6" Ideapad 330/15.6" HP EliteBook 850 G3 / Dell New Latitude 3590 Chromebook Ultrabook (Black)

(217)
$26.59
FREE delivery Sun, Jun 22 on your first order
Loading...
LONMEN 15.6 Inch Laptop Shoulder Bag,Computer Sleeve Carrying Case for Lenovo 15.6" Ideapad 330/15.6" HP EliteBook 850 G3 / Dell New Latitude 3590 Chromebook Ultrabook (Gray)

LONMEN 15.6 Inch Laptop Shoulder Bag,Computer Sleeve Carrying Case for Lenovo 15.6" Ideapad 330/15.6" HP EliteBook 850 G3 / Dell New Latitude 3590 Chromebook Ultrabook (Gray)

(217)
$26.59
FREE delivery Sat, Jun 21 on your first order
Loading...
Anker Nano USB C Wall Charger,45W Fast Charging Smart Display Charger,with 180°Foldable Plug,Smart Recognition,Built-in Care Mode,for iPhone17/16/15 (Non-Battery,One USB-C Port,No Cable Included) ClimatePartner certified

Anker Nano USB C Wall Charger,45W Fast Charging Smart Display Charger,with 180°Foldable Plug,Smart Recognition,Built-in Care Mode,for iPhone17/16/15 (Non-Battery,One USB-C Port,No Cable Included) ClimatePartner certified

(698)
$39.99
FREE delivery Wed, Mar 4
1K+ bought in past month
Loading...
NEXPOW Car Jump Starter,Car Battery Jump Starter Pack 1500A Peak Q10S for Up to 7.0L Gas and 5.5L Diesel Engine12V Auto Battery Booster,Jumper Cables,Portable Lithium Jump Box with LED Light/USB QC3.0

NEXPOW Car Jump Starter,Car Battery Jump Starter Pack 1500A Peak Q10S for Up to 7.0L Gas and 5.5L Diesel Engine12V Auto Battery Booster,Jumper Cables,Portable Lithium Jump Box with LED Light/USB QC3.0

(4,578)
$71.99
FREE delivery Sat, Jan 3
2K+ bought in past month
Loading...
Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

(181)
$70.15$61.13
$5.05 delivery Thu, Jun 26Only 3 left in stock.
Loading...
9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

(261)
$99.99
FREE delivery Sat, Sep 20
1K+ bought in past month