Spaces:
Running
Running
File size: 6,142 Bytes
3014fc3 eedc4b2 3014fc3 90537f3 960b03d 3014fc3 90537f3 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 90537f3 3014fc3 90537f3 3014fc3 90537f3 3014fc3 90537f3 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 90537f3 3014fc3 90537f3 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 960b03d 3014fc3 90537f3 3014fc3 960b03d 3014fc3 960b03d 3014fc3 90537f3 3014fc3 90537f3 3014fc3 6dc647c 3014fc3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
---
title: Tabble-v3 Restaurant Management
emoji: π½οΈ
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
license: mit
short_description: Restaurant management with QR ordering & analytics
tags:
- restaurant
- management
- fastapi
- qr-code
- ordering
- analytics
- multi-database
---
# π½οΈ Tabble-v3 Restaurant Management System
A comprehensive restaurant management system built with FastAPI and modern web technologies, featuring QR code-based table ordering, real-time order management, and multi-database support for independent hotel operations.
## π Live Demo
This application is deployed on Hugging Face Spaces with Docker. Try all the features:
- **π Home Interface**: Complete system overview
- **π₯ Customer Ordering**: QR code-based table ordering system
- **π¨βπ³ Chef Dashboard**: Real-time kitchen order management
- **π¨ Admin Panel**: Complete restaurant control and analytics
## π Demo Credentials
- **Hotel Access Code**: `myhotel`
- **Demo Database**: `tabble_new.db`
- **Table Numbers**: 1-20
- **Phone OTP**: Any 6 digits (demo mode)
## β¨ Key Features
### π½οΈ Customer Experience
- **QR Code Ordering**: Scan table QR codes for instant menu access
- **Phone OTP Authentication**: Secure Firebase-based login
- **Real-time Cart**: Live cart updates with special offers
- **Payment Integration**: Secure payment processing with loyalty discounts
- **Order History**: Track past orders and preferences
### π¨βπ³ Kitchen Operations
- **Real-time Notifications**: Instant order alerts for chefs
- **Order Management**: Accept, prepare, and complete orders
- **Status Updates**: Live status changes across all interfaces
- **Kitchen Analytics**: Track preparation times and efficiency
### π¨ Restaurant Management
- **Multi-Database Support**: Independent hotel operations
- **Complete Admin Panel**: Full restaurant control
- **Menu Management**: Add, edit, and manage dishes with images
- **Analytics Dashboard**: Customer behavior and sales insights
- **Loyalty Programs**: Configurable visit-based discounts
- **Table Management**: Monitor occupancy and status
## π οΈ Technology Stack
- **Backend**: FastAPI 0.104.1 with Python 3.11
- **Database**: SQLite with SQLAlchemy ORM
- **Authentication**: Firebase Admin SDK
- **Templates**: Jinja2 with Bootstrap 5
- **Deployment**: Docker on Hugging Face Spaces
- **Architecture**: RESTful API with middleware patterns
## π§ Quick Start
### Using the Demo
1. **Access the Application**: Visit the Hugging Face Spaces URL
2. **Choose Interface**: Select Customer, Chef, or Admin from the home page
3. **Customer Login**: Use hotel code `myhotel` and any table number
4. **Explore Features**: Try ordering, kitchen management, or admin controls
### Local Development
```bash
# Clone the repository
git clone <repository-url>
cd tabble-v3
# Install dependencies
pip install -r requirements.txt
# Run locally
python run.py
```
## π± Interface Guide
### Customer Interface (`/customer`)
1. Select hotel and enter access code
2. Choose table number
3. Enter phone number for OTP verification
4. Browse menu and place orders
5. Track order status in real-time
### Chef Dashboard (`/chef`)
1. View live order notifications
2. Accept and manage incoming orders
3. Update order status (cooking, ready, completed)
4. Monitor kitchen performance metrics
### Admin Panel (`/admin`)
1. Complete restaurant management
2. Add and edit menu items
3. Configure pricing and offers
4. View analytics and reports
5. Manage hotel settings
## ποΈ Multi-Database Architecture
Each hotel operates with its own SQLite database:
```
βββ tabble_new.db # Demo hotel database
βββ your_hotel.db # Your hotel database
βββ another_hotel.db # Additional hotel database
```
**Features:**
- Complete data isolation between hotels
- Independent menu and pricing
- Separate customer databases
- Individual analytics and reports
## π Security Features
- **Firebase Authentication**: Secure phone OTP verification
- **Database Protection**: Password-protected hotel access
- **Session Management**: Secure session handling
- **CORS Configuration**: Properly configured for web access
- **Data Isolation**: Complete separation between hotel data
## π Analytics & Reporting
- **Customer Analytics**: Behavior insights and visit patterns
- **Sales Reports**: Revenue tracking and trends
- **Dish Performance**: Menu item popularity metrics
- **Kitchen Efficiency**: Order processing analytics
- **Custom Reports**: PDF generation for business intelligence
## π― Use Cases
### Small Restaurants
- Single database operation
- QR code table ordering
- Basic order management
- Customer analytics
### Hotel Chains
- Multi-database architecture
- Independent hotel operations
- Centralized management
- Brand consistency
### Food Courts
- Multiple vendor support
- Shared customer interface
- Individual kitchen dashboards
- Unified payment processing
## π Deployment
This application is containerized with Docker and optimized for Hugging Face Spaces:
- **Port**: 7860 (Hugging Face Spaces standard)
- **Build**: Automatic Docker build from repository
- **Environment**: Python 3.11-slim with all dependencies
- **Database**: Auto-initialized with demo data
## π API Documentation
Once deployed, explore the interactive API documentation:
- **Swagger UI**: `/docs`
- **ReDoc**: `/redoc`
- **Health Check**: `/health`
## π€ Contributing
This is an open-source project. Contributions are welcome!
1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a Pull Request
## π License
This project is licensed under the MIT License - see the LICENSE file for details.
## π Links
- **Documentation**: Comprehensive API docs available at `/docs`
- **GitHub**: Repository with full source code
- **Demo**: Live demo with sample data
- **Support**: Issues and discussions on GitHub
---
**Ready to transform your restaurant operations? Start exploring the demo now!** ππ½οΈ
|