Academic ProjectRole: Full-Stack Developer & Cloud Deployment LeadTechnical Architecture & Implementation

Stampify – Digital ID Verification and Event Passport System

An enterprise-grade full-stack membership and event attendance management system featuring secure digital ID verification and QR code scanning capabilities. Implements comprehensive database logging mechanisms for user activity tracking, ensuring scalability, security, and long-term maintainability. Architected with a decoupled Next.js frontend and Spring Boot backend, deployed on AWS EC2 infrastructure with PostgreSQL database management through NeonDB and AWS S3 for scalable media storage. Secures API endpoints with JWT authentication and role-based access control.

Next.jsJavaSpring BootPostgreSQLAWS S3AWS EC2DockerREST APIJWTJWT AuthenticationGitGitHub

Stampify: Digital ID Verification and Event Passport System #

Architecting a resilient, enterprise-grade membership management and QR attendance verification platform powered by Spring Boot, PostgreSQL, and AWS.

Demonstration Notice: This article documents an academic software engineering capstone and prototype deployment, including architecture specifications and simulated load evaluations to illustrate the engineering scope and implementation approach.


Overview #

Academic organizations, student guilds, and conference coordinators frequently manage event check-ins using paper rosters, manual spreadsheets, or ad-hoc Google Forms. At scale, this workflow results in long queue delays, duplicate check-ins, and tedious post-event attendance audits.

I built Stampify as a decoupled digital passport and membership management platform. It equips organization administrators with real-time attendee tracking, custom badge issuance, and cryptographic QR code check-ins, while providing members with a mobile digital passport that archives attended workshops, earned badges, and verified memberships.


Problem and Context #

Event check-in desks experience extreme traffic spikes: hundreds of attendees arrive within a narrow registration window before an opening keynote. Existing manual systems encounter three primary failures:

  1. Queue Bottlenecks: Manual name searches and barcode scanner delays produce physical registration queues exceeding 20 minutes.
  2. Duplicate Check-Ins and Token Forgery: Static QR code screenshots can easily be forwarded between students, leading to false attendance counts and unauthorized venue entry.
  3. Data Desynchronization: Multi-booth check-in setups frequently experience race conditions when multiple staff members record check-ins simultaneously without centralized concurrency controls.

Objectives and Requirements #

  • Sub-Second Verification: Validate member digital credentials and process check-in events in less than 400 milliseconds.
  • Dynamic Cryptographic Badges: Generate time-based, cryptographically signed QR codes that rotate periodically to prevent screenshot sharing.
  • Audit Logging and Analytics: Provide a tamper-evident audit log of every scan event, including scanner user ID, timestamp, and location tag.
  • Robust Cloud Infrastructure: Deploy a decoupled, scalable architecture on AWS EC2, NeonDB PostgreSQL, and Amazon S3 with Docker containers.

Approach and Process #

I engineered Stampify with an enterprise-grade backend paired with an accessible mobile-friendly web client:

  • Backend Architecture: Built with Java 17 and Spring Boot 3, leveraging Spring Security and Spring Data JPA for enterprise reliability.
  • Frontend Client: Built with Next.js 14, TypeScript, and Tailwind CSS, utilizing html5-qrcode for responsive in-browser camera scanning.
  • Database & Storage: Used PostgreSQL hosted via NeonDB for serverless connection pooling, with AWS S3 for digital ID avatar storage.
  • Security & Authorization: Implemented stateless JWT Authentication with granular Role-Based Access Control (Super Admin, Organizer, Member).
  • Containerization & Hosting: Packaged services in Docker containers deployed on AWS EC2 with Nginx reverse proxying and automated Let's Encrypt SSL/TLS.

Solution and Key Features #

The verification lifecycle ensures both rapid verification and strict audit security:

[Attendee Mobile Web App]              [Admin Scanner Terminal]
           │                                      │
           │ (Renders Dynamic Signed QR)          │ (Camera Scan Event)
           │                                      ▼
           └──────────────────────────────► [Spring Boot API Gateway]
                                                  │
                                                  ├─► JWT & Signature Verification
                                                  ├─► Pessimistic Lock / Concurrency Check
                                                  ▼
                                      [PostgreSQL (NeonDB)]
                                      • Attendance Log Entry
                                      • Event Capacity Counter
  1. Rotating Signed Passports: Attendee QR codes contain a signed payload consisting of the Member UUID, Event UUID, Timestamp, and an HMAC-SHA256 signature calculated with a rotating server secret. Stale QR codes older than 45 seconds are rejected automatically.

  2. Concurrency Control and Double-Check Prevention: To prevent duplicate scans when attendees present badges at adjacent registration desks, I utilized transactional database constraints and conditional write queries:

    INSERT INTO event_attendance (event_id, member_id, check_in_time, scanner_user_id)
    VALUES (:eventId, :memberId, NOW(), :scannerId)
    ON CONFLICT (event_id, member_id) DO NOTHING;
    

    If zero rows are updated, the scanner immediately receives a clear "Already Checked In" warning with the prior scan timestamp.

  3. Event Passport and Digital Stamp Collection: Upon successful verification, the attendee's profile is credited with a verified digital event stamp. Media assets for digital badges and event banners are stored directly in AWS S3 with CDN delivery.


My Role and Contributions #

As the full-stack developer and cloud deployment lead, my individual responsibilities encompassed:

  • Backend Architecture & REST API: Designed the Spring Boot microservices architecture, domain entities, repository interfaces, and REST controllers.
  • Security Engineering: Implemented Spring Security configurations, JWT filter chains, role-based method security (@PreAuthorize), and HMAC signature verification routines.
  • Database Schema & Migrations: Designed normalized PostgreSQL schemas with composite indexes for rapid attendee lookups and deduplication constraints.
  • Frontend Camera Integration: Built the Next.js camera scanner interface using html5-qrcode, handling cross-device camera permissions and feedback audio chimes.
  • Cloud Infrastructure & CI/CD: Provisioned the AWS EC2 Linux host, configured Docker Compose manifests, set up Nginx reverse proxy routing, and configured Let's Encrypt SSL certificates.

Challenges and Decisions #

  • Unstable Network Connectivity at Registration Desks:
    • Challenge: Convention venues frequently experience cellular network degradation when hundreds of devices connect concurrently.
    • Decision: I equipped the Next.js scanner client with an offline-first IndexedDB scan queue that stores encrypted timestamps and synchronizes them in batch chunks once connectivity recovers.
  • Camera Access Across Varied Mobile Browsers:
    • Challenge: Scanner volunteers used different personal Android and iOS devices with varying browser permission quirks.
    • Decision: I developed a standardized scanner wrapper with explicit resolution fallbacks (720p to 480p) and clear error prompts for camera permission configurations.
  • Preventing Replay Attacks:
    • Challenge: Static screenshots of barcodes allowed multiple students to claim event entrance with one ticket.
    • Decision: I implemented rotating dynamic tokens with 45-second lifespans, verifying token freshness on the server before committing check-in records.

Results and Validation #

  • Verification Latency: Benchmarked an average end-to-end verification latency of 180 ms from camera decode to UI confirmation.
  • Throughput Capacity: Validated check-in throughput of ~15 attendees per scanner per minute in simulated staging environments.
  • Data Integrity: Maintained 100% data consistency without duplicate attendance entries across concurrent multi-terminal test suites.
  • User Interface Responsiveness: Confirmed consistent camera stream rendering and instant audio-visual feedback across mobile Safari and Chrome browsers.

Lessons Learned and Future Improvements #

  1. Stateless Tokens Simplify Scale: Offloading credential parsing to cryptographic JWT verification reduces database read overhead during opening registration rushes.
  2. Clear Audio/Visual Cues Accelerate Volunteers: High-contrast green/red screen flashes and distinct audio tones significantly reduce human error among event staff volunteers.
  3. Future Roadmap: I plan to explore WebAuthn passkey support for passwordless attendee authentication and BLE proximity beacon scanning for automated check-ins.

Stampify proved that decoupled web architectures and cryptographic QR tokens can replace brittle manual check-in processes with fast, tamper-proof attendance management.