Skip to content
harithnabilfPublic

About

Real-time web-based virtual queue management system using React, Node.js, Socket.IO, and MongoDB.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Q-Up

A real-time web-based virtual queue management system built to eliminate physical ticket dispensers and congested waiting lines. Q-Up allows customers to join a virtual queue by scanning a QR code on their smartphone and track their position live, while merchants manage queue flow through an administrative dashboard.

Recognition: Silver Medal, Pertandingan Inovasi Antara Asasi Malaysia (PITRAM) 2026.


System Overview

Q-Up decouples the customer-facing interface from the merchant administration portal while maintaining real-time, bidirectional state synchronization across devices using WebSockets:

  1. Customer Flow:

    • The customer scans a static QR code displayed at the merchant counter or entrance.
    • A virtual ticket is generated with a unique queue number and timestamp.
    • The web interface displays live queue status, number of parties ahead, and estimated wait times.
    • When called by the merchant, the device triggers an audio/visual notification.
  2. Merchant Flow:

    • The merchant logs into the administrative portal to control the queue.
    • Provides real-time buttons to call the next customer, recall, mark as served, or cancel tickets.
    • Controls are broadcasted immediately to all connected customer devices via WebSockets.

Tech Stack

Frontend (/client)

  • Framework: React.js (v18)
  • Routing: React Router DOM (v6)
  • Real-Time Communication: Socket.IO Client
  • HTTP Client: Axios
  • Styling: Custom CSS3 (Flexbox, Grid, CSS Keyframe Animations)
  • Utilities: qrcode for QR code rendering

Backend (/server)

  • Runtime: Node.js
  • API Framework: Express.js
  • WebSocket Engine: Socket.IO Server
  • Database ODM: Mongoose
  • Push Notifications: Web Push (VAPID protocol)

Database

  • Primary Database: MongoDB Atlas (cloud document store)

Project Structure

q-up-app/
├── client/                  # React frontend client & admin application
│   ├── public/              # Static assets and HTML template
│   ├── src/
│   │   ├── components/      # Reusable UI components (Navbar, QueueCard, etc.)
│   │   ├── pages/           # Customer ticket view, admin dashboard, display board
│   │   ├── App.js           # Main application routing
│   │   └── index.js         # React DOM entry point
│   └── package.json
│
├── server/                  # Node.js Express & WebSocket backend
│   ├── controllers/         # Queue, ticket, and merchant request logic
│   ├── models/              # Mongoose schemas (Queue, Ticket, Merchant)
│   ├── routes/              # Express REST API endpoints
│   ├── utils/               # Socket.IO event handlers and push helpers
│   ├── server.js            # Server entry point and HTTP/WebSocket listener
│   └── package.json
│
└── README.md

Getting Started

Prerequisites


Backend Setup

  1. Navigate to the server directory:

    cd server
  2. Install backend dependencies:

    npm install
  3. Create a .env file in the server directory with the following variables:

    PORT=5000
    MONGO_URI=your_mongodb_connection_string
    VAPID_PUBLIC_KEY=your_vapid_public_key
    VAPID_PRIVATE_KEY=your_vapid_private_key
  4. Start the backend development server:

    npm start

    The backend server runs at http://localhost:5000.


Frontend Setup

  1. Open a new terminal and navigate to the client directory:

    cd client
  2. Install frontend dependencies:

    npm install
  3. Start the React development server:

    npm start

    The client application opens automatically at http://localhost:3000.


Live Deployment

About

Real-time web-based virtual queue management system using React, Node.js, Socket.IO, and MongoDB.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages