How ramjani09/waitora works
WAITORA lets visitors choose a service, join its virtual queue, and track ticket position and estimated wait; staff monitor queues and advance or clear tickets. The React app calls a FastAPI service, which delegates queue operations to a JSON-persisted store. The sampled sources confirm the app shell, API client, staff dashboard, ticket tracking, API handlers, and store behavior; join-form wiring and other unsampled page details are represented only at the documented subsystem level.
Main entry points: App.jsx App shell · api.js API client · StaffDashboard.jsx Staff dashboard · QueueStatus.jsx Ticket status
Components 15
Visitor experience
- App shell
frontend/src/App.jsx - Home and services
frontend/src/pages/Home.jsx - Join queue
frontend/src/pages/JoinQueue.jsx - Ticket status
frontend/src/pages/QueueStatus.jsx - Ticket display
frontend/src/components/QueueTicket.jsx - API client
frontend/src/services/api.js
Staff operations
- Staff dashboard
frontend/src/pages/StaffDashboard.jsx - Queue controls
frontend/src/components/AdminQueueTable.jsx - Queue statistics
frontend/src/components/StatCard.jsx
Queue API
- FastAPI handlers
backend/app/main.py - API models
backend/app/models.py
Queue state
- Queue logic
backend/app/store.py - Persisted queue state
backend/data/queue_state.json
Other components
- Visitor
- Staff member
Connections 17
- Visitor → App shell: uses
- Staff member → App shell: uses
- App shell → Home and services: renders
- App shell → Join queue: renders
- App shell → Ticket status: renders
- App shell → Staff dashboard: renders
- Home and services → API client: loads services
- Join queue → API client: requests ticket
- Ticket status → API client: polls and leaves
- Ticket status → Ticket display: displays ticket
- Staff dashboard → API client: loads and updates
- Staff dashboard → Queue controls: renders controls
- Staff dashboard → Queue statistics: renders metrics
- API client → FastAPI handlers: HTTP requests
- FastAPI handlers → API models: validates and shapes
- FastAPI handlers → Queue logic: dispatches operations
- Queue logic → Persisted queue state: loads and saves