Skip to content

Event Registration with Ticket Generation and QR Check-in - #19178

Open
rajatsingh535 wants to merge 3 commits into
SandeepVashishtha:masterfrom
rajatsingh535:feat/event-registration-tickets-checkin
Open

rajatsingh535 wants to merge 3 commits into
SandeepVashishtha:masterfrom
rajatsingh535:feat/event-registration-tickets-checkin

Conversation

@rajatsingh535

Copy link
Copy Markdown
Contributor

Description

This PR implements a complete event registration and check-in system for Eventra, transforming it from a discovery platform into a full-featured event management solution.

Features Implemented:

  • Event registration form with name, email, and custom fields per event
  • Automatic ticket generation with unique UUID and QR codes
  • Professional PDF tickets with Eventra branding (using pdf-lib)
  • Optional email delivery with PDF attachment (via Nodemailer)
  • Organizer check-in dashboard with live QR scanner (using html5-qrcode)
  • Manual attendee search and check-in
  • File-based ticket storage in data/tickets.json
  • Real-time check-in status tracking
  • Duplicate registration and check-in prevention

Technical Implementation:

  • 3 new React components (EventRegistrationForm, EventTicketCard, TicketQrScanner)
  • 7 new API routes for registration, check-in, and ticket management
  • 4 new library modules (ticketStore, ticketPdf, mailer, eventTicketApi)
  • 4 automated tests (all passing ✅)
  • Comprehensive documentation (TICKET_FEATURE.md, TESTING_GUIDE.md)

Dependencies Added:

  • qrcode - QR code generation
  • pdf-lib - PDF creation
  • html5-qrcode - Live QR scanner
  • nodemailer - Email delivery

Closes #19148

Type of change

  • Bug fix
  • New feature
  • Refactor / code quality
  • Documentation
  • CI / tooling

Screenshots

Registration Form

![Registration form on event detail page with pre-filled user data]

Generated Ticket with QR Code

![Professional ticket card displaying QR code, event details, and download button]

Check-in Dashboard

![Two-column layout with live QR scanner on left and manual attendee search on right]

PDF Ticket

![Professional PDF ticket with Eventra branding, QR code, and event information]

Checklist

  • npm run lint passes with no errors
  • npm run build succeeds
  • The CI check on this PR is green
  • I have tested my changes locally

Additional Testing:

  • All 4 automated tests passing (npm test)
  • Registration flow tested end-to-end
  • QR code scanning verified with camera
  • PDF generation produces valid, scannable tickets
  • Check-in dashboard functional
  • Duplicate prevention working correctly

Files Changed: 31 files, 2,211 lines added, 62 lines deleted

How to Test:

  1. Run npm install && npm test (all tests should pass)
  2. Start dev server with npm run dev
  3. Navigate to any event and click "Register for this event"
  4. Fill form and verify ticket generates with QR code
  5. Download PDF and verify content
  6. Visit /events/1/check-in to test organizer dashboard
  7. Scan QR code or search manually to check in attendees

See TESTING_GUIDE.md for comprehensive testing scenarios.

…andeepVashishtha#19148)

Implements a complete event registration and check-in system:

Features:
- Event registration form with custom fields per event
- Automatic ticket generation with unique UUID
- QR code generation for tickets
- PDF ticket generation with event details
- Email delivery of tickets via Nodemailer (optional SMTP)
- Duplicate registration prevention
- Organizer check-in dashboard with live QR scanner
- Manual attendee search and check-in
- Real-time check-in status tracking
- File-based ticket storage (data/tickets.json)

Components Added:
- EventRegistrationForm: Collects attendee info and custom fields
- EventTicketCard: Displays ticket with QR code and download
- TicketQrScanner: Camera-based QR code scanning
- Check-in dashboard page: Organizer interface for attendance

API Routes:
- POST /api/events/[id]/register - Register and get ticket
- POST /api/events/[id]/check-in - Check in attendee
- GET /api/events/[id]/tickets - List event tickets
- GET /api/tickets/[ticketId] - Retrieve single ticket
- GET /api/tickets/[ticketId]/pdf - Download ticket PDF
- GET/PUT /api/events/[id]/registration-fields - Manage custom fields

Libraries:
- qrcode: QR code generation
- pdf-lib: Professional PDF tickets
- html5-qrcode: Live camera QR scanning
- nodemailer: Email delivery

Tests:
- Ticket creation and duplicate prevention
- Check-in validation and status updates
- QR code and PDF generation
- All tests passing with npm test

Configuration:
- Optional SMTP via environment variables
- Works without email (PDF download always available)
- .env.example updated with SMTP template

Documentation:
- README.md updated with ticket system overview
- TICKET_FEATURE.md with complete implementation details
- API endpoint documentation
- Testing and deployment guides

Closes SandeepVashishtha#19148
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

@rajatsingh535 is attempting to deploy a commit to the sandeepvashishtha's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No quality gates enabled for this code.

See analysis details in CodeScene

Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add event registration with ticket generation and QR code check-in capability

1 participant