Restaurant POS
Restaurant POS is a Windows desktop point-of-sale application for restaurants. It is restaurant-agnostic: restaurant identity, branding, menu data, table counts, and service-charge settings are entered wh 9D91 en the application is first installed.
- First-run restaurant setup
- Restaurant name, address, phone, email, logo, footer image, and separate Windows
.icoapp icon - Menu import from JSON and menu management inside the application
- Configurable indoor and outdoor table counts
- Indoor, outdoor, and home-delivery orders
- Quantity controls and editable current orders
- Optional service charge
- Receipt and kitchen-slip previews
- ESC/POS printing when supported
- Automatic Windows printer discovery and spooler fallback
- Configurable receipt and kitchen printer
- Session sales and date-filtered sales reports
- CSV sales-report export
- Automatic backup and restore for application data
- Staff PIN authentication and PIN changes
- Responsive, resizable windows
- Windows 10 or later
- Python 3.13 or later
- A Windows printer for physical printing
The application reports printer errors when a printer is unavailable; it does not silently create receipt files instead of printing.
From the project directory:
uv sync
.venv\Scripts\python.exe .\main.pyIf the virtual environment already exists, the direct run command is:
.\.venv\Scripts\python.exe .\main.pyRun the test suite with:
.\.venv\Scripts\python.exe -m unittest tests.test_receiptThe first launch opens Restaurant setup. Enter:
- Restaurant name
- Address
- Phone number
- Optional email address
- Service charge
- Indoor table count
- Outdoor table count
- Logo image (
.png,.jpg, or.jpeg) - Footer image (
.png,.jpg, or.jpeg) - Separate Windows app icon (
.ico) - Optional menu JSON file
The form validates required fields, contact formats, numeric limits, image paths, and menu-file contents before saving.
After setup, create the staff PIN. The PIN is required on later launches.
Menu files must contain a JSON array. Each item requires category, name,
size, and a non-negative numeric price:
[
{
"category": "Pizza",
"name": "Margherita Pizza",
"size": "Medium",
"price": 850
},
{
"category": "Drinks",
"name": "Cola",
"size": "Regular",
"price": 120
}
]Menu items can also be added, edited, or removed later through Manage menu.
- Select a category, menu item, size, and quantity.
- Add the item to the current order.
- Select
Indoor,Outdoor, orHome Delivery. - Select a table number when required.
- Enable or disable the service charge.
- Select PRINT RECEIPT to save the order and print the receipt and kitchen slip.
The application displays receipt and kitchen-slip previews before printing.
Use the session-sales and sales-report controls to review revenue. Sales reports can be filtered by date and exported as CSV.
On Windows, the application uses the configured printer, or discovers the Windows default printer when no printer has been selected. It first attempts ESC/POS printing and falls back to the Windows printer spooler. The configured logo and footer images are included in ESC/POS output when supported.
The application detects local and connected Windows printers through
pywin32; no printer model is hard-coded.
Restaurant-specific data is stored outside the project and installed files:
%APPDATA%\Restaurant POS\restaurant.json
%APPDATA%\Restaurant POS\menu_items.json
%APPDATA%\Restaurant POS\session_sales.json
%APPDATA%\Restaurant POS\access.pin
%APPDATA%\Restaurant POS\backups\
Printer output is sent directly to the selected Windows printer.
The application creates a timestamped backup at startup after staff login. Backups contain restaurant settings, menu data, session sales, and the staff PIN. The Backup and restore dashboard action can create an immediate backup, export a backup as a ZIP archive, or restore a selected backup. Restore replaces the current data and restarts the application.
Install the development dependencies and build the executable with PyInstaller:
uv sync --dev
.\.venv\Scripts\pyinstaller.exe RoyaleBistro.specThe executable is generated in dist. The Inno Setup script rb.iss can then
be used to create a Windows installer from the generated executable.
main.py Application entry point and UI
domain/ Pricing and domain models
repositories/ Menu, restaurant, and sales persistence
services/ Receipt and kitchen-slip formatting
ui/ Theme and UI styling
tests/ Automated tests
RoyaleBistro.spec PyInstaller build configuration
rb.iss Inno Setup installer configuration
pyproject.toml Python dependencies and project metadata
This project is licensed under the MIT License. See LICENSE for the full license text.