Skip to content
F

FinIdeas

FinIdeas LeadFlow – Smart Conference CRM

Created on 15th February 2026

•

F

FinIdeas

FinIdeas LeadFlow – Smart Conference CRM

The problem FinIdeas solves

In real-world conferences, exhibitions, and networking events, businesses often lose valuable leads because they rely on manual data entry, paper forms, or business cards. These traditional methods are slow, error-prone, and inefficient. Additionally, many QR-based systems fail due to incorrect localhost links, invalid tokens, or improper backend validation, making them unusable in real environments.

This project solves these critical problems by building a secure, reliable QR-based Lead Capture System using Next.js and Node.js.

Key Problems Solved:

• QR codes containing localhost links that do not work on mobile devices
• Invalid or expired QR token errors
• Failed QR code generation due to incorrect frontend-backend integration
• Manual lead capture causing delays and data loss
• Lack of secure validation for scanned QR codes
• Improper system architecture for real-world deployment

How This System Solves Them:

• Generates mobile-accessible QR codes using proper network URLs
• Implements secure token-based QR validation
• Ensures reliable frontend-backend communication
• Enables instant lead capture directly from visitor mobile devices
• Prevents invalid or expired QR misuse
• Provides a production-ready, scalable architecture

This system is especially useful for:

• Conferences
• Hackathons
• Exhibitions
• Startup events
• Business networking

It ensures no leads are lost, improves efficiency, and creates a seamless digital lead capture experience.

Challenges we ran into

  1. QR Code Containing localhost (Major Issue)

Initially, the generated QR codes contained URLs like:

http://localhost:3000/scan?token=XYZ

This worked on my computer but failed on mobile devices because localhost refers to the device itself. When scanning from a phone, the phone tried to access its own localhost instead of my development machine.

Solution:
I replaced localhost with my machine's local network IP address and introduced environment variables:

NEXT_PUBLIC_FRONTEND_URL=http://192.168.X.X:3000
NEXT_PUBLIC_API_URL=http://192.168.X.X:5000

This allowed mobile devices on the same WiFi network to access the frontend correctly.

  1. QR Code Showing "Invalid or Expired Token"

Even when scanning from the correct URL, the system sometimes showed an "Invalid QR Code" error.

This happened because:

Tokens were expiring too quickly

Some tokens were not stored correctly in the database

Validation logic was too strict

Solution:
I implemented a proper token lifecycle system with:

Secure token generation

Database storage with expiration timestamps

Reliable validation logic

Proper error handling for expired vs invalid tokens

  1. QR Generation Failed Due to Incorrect API Configuration

The frontend initially used the wrong base URL when requesting the backend, causing QR generation failures.

Example mistake:

fetch(${NEXT_PUBLIC_FRONTEND_URL}/api/v1/qr/generate)

This called the frontend instead of the backend.

Solution:
I separated frontend and backend URLs clearly:

NEXT_PUBLIC_FRONTEND_URL=...
NEXT_PUBLIC_API_URL=...

And used the correct API URL for backend requests.

  1. CORS and Network Access Issues

When accessing the backend from mobile devices, CORS restrictions blocked requests.

Solution:
I properly configured CORS in the Express backend:

app.use(cors({
origin: "*",
credentials: true
}));

And ensured both frontend and backend ran on 0.0.0.0.

  1. Ensuring Reliable End-to-End Flow

Making sure the full pipeline worked correctly required debugging multiple layers:

Frontend QR generation

Backend token creation

Database storage

Mobile scanning

Token validation

Lead submission

I used browser dev tools, backend logs, and network debugging to isolate and fix issues step-by-step.

Outcome

After solving these challenges, I successfully built a production-ready QR lead capture system that works reliably across devices and networks.

This experience significantly improved my understanding of:

Full-stack debugging

Network configurations

Authentication flows

Production system architecture

Discussion

Builders also viewed

See more projects on Devfolio