Spaces:
Sleeping
Sleeping
π€ Hugging Face Spaces Deployment Guide for Tabble-v3
π Quick Deployment
Step 1: Prepare Repository
git clone https://github.com/your-username/tabble-v3.git
cd tabble-v3
# Verify required files exist:
# β Dockerfile, app.py, requirements.txt
# β templates/, app/, hotels.csv
Step 2: Create Hugging Face Space
- Go to https://huggingface.co/new-space
- Configure:
- Space name:
tabble-v3-restaurant
- SDK: Docker
- License: MIT
- Space name:
- Connect your GitHub repository
- Add metadata to README.md:
---
title: Tabble-v3 Restaurant Management
emoji: π½οΈ
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
license: mit
tags: [restaurant, management, fastapi, qr-code]
---
Step 3: Monitor Build
- Watch build logs in "Logs" tab
- Wait for "Running on http://0.0.0.0:7860" message
- Verify health check at
/health
endpoint
π± Using Your App
Access URLs
- Home:
your-space-url/
- Customer:
your-space-url/customer
- Chef:
your-space-url/chef
- Admin:
your-space-url/admin
- API Docs:
your-space-url/docs
Demo Credentials
- Hotel Access Code:
myhotel
- Tables: 1-20
- Phone OTP: Any 6 digits
π§ Customization
Add Your Hotel
Edit hotels.csv
:
hotel_database,password
your_restaurant.db,secure_password_123
Menu Setup
- Access admin panel with hotel code
- Go to "Manage Dishes"
- Add menu items with images and pricing
π Troubleshooting
Common Issues
- Build fails: Check Dockerfile and requirements.txt
- App won't start: Verify port 7860 and database init
- Templates missing: Ensure templates/ directory exists
Debug Steps
- Check Space logs for errors
- Test
/health
endpoint - Verify admin panel loads with demo credentials
π Production Ready
Security
- Update hotel passwords in
hotels.csv
- Set
SECRET_KEY
environment variable
Features
- Upload menu images to
app/static/images/
- Customize branding in templates
- Configure real SMS/payment services
Your restaurant management system is now live! π