A next-generation, multi-tenant restaurant SaaS & real-time contactless ordering platform built with TanStack Ecosystem
Delycia is a production-ready, multi-tenant restaurant management platform designed to digitize dining experiences. Combining frictionless, instant QR-code customer ordering with a robust, real-time administrative workflow and automated subscription billing, Delycia serves as a unified operational suite for modern food-service businesses.
| Problem | Delycia's Solution |
|---|---|
| Manual & Paper Workflows | Digitized, table-based QR-code menu browsing and ordering with zero application installation. |
| Disconnected Kitchens | Event-driven WebSocket synchronization keeping kitchen queues, waiters, and customers in perfect sync. |
| High Aggregator Commissions | A direct-to-consumer SaaS platform, bypassing costly third-party delivery marketplaces. |
| Fragmented Management | A centralized dashboard coordinating menus, multi-restaurant inventory, staff scheduling, and billing. |
| Communication Delays | Instant, bidirectional WebSocket event synchronization ensuring orders, table states, and kitchen workflows are updated in real-time. |
| Capability | Description |
|---|---|
| π Real-Time Sync | Event-driven WebSocket layer utilizing Socket.IO to instantly push order states, table occupancy, and kitchen updates to all connected devices. |
| π± QR-Code Ordering | Instant digital menu access, variant selection, addon customizers, and contactless checkout. |
| π Staff Workspace | Dynamic real-time views for waiter order dispatching, kitchen queues, and delivery status tracking with audio alerts. |
| πͺ Table & Zone Control | Comprehensive visual layout tracking, occupancy status management, and zone-based QR generation. |
| π₯ Role-Based Permissions | 8-tier staff hierarchy (Owner, Manager, Waiter, Kitchen, etc.) enforced via secure API middlewares. |
| π Dynamic Inventory | Intuitive control panels for menu items, variants, addons, categories, and item availability toggles. |
| π³ Multi-Tenant SaaS Billing | Automated subscription plan management (Trial, Monthly, Yearly) with platform-wide analytics. |
| π AI-Assisted Search | Qdrant vector-backed smart menu exploration, customer memory logging, and dynamic upselling. |
Delycia is engineered with a high-performance event-driven architecture powered by Socket.IO. Order lifecycle events, table status transitions, and kitchen workflows propagate across customer interfaces and admin dashboards with sub-second latency, ensuring absolute synchronization across entire staff.
Delycia scales efficiently by keeping the user-facing app, administration dashboard, and platform-wide superadmin dashboard isolated, all communicating through a secure Backend-for-Frontend (BFF) layer.
Delycia/
βββ server/ # Express.js REST API & WebSocket server
β βββ src/
β β βββ config/ # Database connection pool & DB initialization scripts
β β βββ controller/v1/ # Scoped route controllers (web, admin, superadmin, app, system)
β β βββ routes/v1/ # Secure REST routes & role-based endpoints
β β βββ middlewares/ # JWT verification, CSRF Double Submit, rate limiting & XSS checks
β β βββ services/ # Redis services, session tracking, token caches & rate limiters
β β βββ sockets/ # Socket.IO handlers for live order & table status updates
β β βββ cron_jobs/ # Scheduled node-cron tasks (stats calculation, table resets)
β β βββ models/ # Relational data schema & helper queries
β β βββ validations/ # Zod validation schemas for incoming requests
β βββ Dockerfile # Containerization configuration for the backend
βββ client/ # TanStack Start customer-facing web application (:4000)
β βββ src/
β β βββ routes/ # File-based routes & BFF proxy endpoints (/api/*)
β β βββ lib/ # BFF Auth helpers (withAuth, refreshCoordinator, circuitBreaker)
β β βββ hooks/ # Scoped TanStack Query query/mutation hooks
β β βββ context/ # AuthProvider & StoreProvider context definitions
β β βββ store/ # Zustand lightweight UI and shopping cart state management
β βββ Dockerfile # Containerization configuration for the client
βββ admin/ # TanStack Start restaurant operations dashboard (:4500)
β βββ src/
β β βββ routes/ # Live orders queue, menu manager, staff tools & billing
β β βββ hooks/ # Socket.IO managers & multi-restaurant context switching
β β βββ services/ # Local storage session, token, and cleanup utilities
β βββ Dockerfile # Containerization configuration for the admin panel
βββ superadmin/ # TanStack Start platform super-admin panel (:5000)
β βββ src/
β β βββ routes/ # Tenant activation, subscription plan definitions & system health
β βββ Dockerfile # Containerization configuration for the superadmin panel
βββ landing/ # Product marketing landing page
| Category | Technologies |
|---|---|
| π Frontend Framework | TanStack Start (SSR, file-based routing), Vite, TanStack Router |
| β‘ State & Query | TanStack Query, Zustand, Axios |
| π¨ UI & Styling | Tailwind CSS, Radix UI primitives, shadcn/ui, Framer Motion |
| βοΈ Backend & Logic | Express.js, Node.js (ESM), node-cron |
| βοΈ Database & Cache | MariaDB (mysql pool), Redis (session & token caching) |
| π Real-Time Layer | Socket.IO (WebSocket server & client), Event-driven updates |
| π Security & Auth | JWT Access+Refresh Tokens, BFF (Backend-for-Frontend) Pattern, csrf-csrf, Rate Limiting |
| π€ Intelligence & Search | Google GenAI, OpenAI, Qdrant Vector Search |
Duplicate the environment sample configurations across the services:
# Backend Server
cp server/.env.example server/.env
# Client App
cp client/.env.sample client/.env
# Admin Panel
cp admin/.env.sample admin/.env
# SuperAdmin Panel
cp superadmin/.env.sample superadmin/.envInstall packages for the specific modules in your environment:
# Server (Backend)
cd server && npm install
# Client (Frontend)
cd ../client && pnpm install
# Admin Panel
cd ../admin && pnpm install
# SuperAdmin Panel
cd ../superadmin && pnpm installMake sure you have MariaDB 11.8+ and Redis 5.6+ active.
- MariaDB Schema Setup:
mysql -u root -p < delycia_db_structure.sql - Redis Server Setup:
redis-server
Launch each service in a separate terminal:
# Terminal 1 - Express API Server
cd server && npm run dev
# Terminal 2 - Customer Client App (Port 4000)
cd client && pnpm run dev
# Terminal 3 - Restaurant Admin Panel (Port 4500)
cd admin && pnpm run dev
# Terminal 4 - Platform SuperAdmin Panel (Port 5000)
cd superadmin && pnpm run dev- π Customer Portal:
http://localhost:4000 - βοΈ Restaurant Admin:
http://localhost:4500 - π Platform SuperAdmin:
http://localhost:5000 - π API Engine & Health:
http://localhost:3000




