Cafe Management System Documentation
1. Introduction
The Cafe Management System is a web-based application designed to manage the daily operations
of a cafe efficiently.
This system allows cafe owners and staff to manage orders, menu items, inventory, billing, and
generate reports.
2. Tools & Technologies
- Front-End Tool: PHP (HTML, CSS, JavaScript integrated)
- Back-End Tool: MySQL
- Web Server: Apache (XAMPP/WAMP)
- Browser: Google Chrome / Mozilla Firefox
- IDE/Editor: VS Code / Sublime Text / Notepad++
3. System Modules
A. Admin Panel
- Add, Edit, Delete menu items
- Manage categories (Beverages, Snacks, etc.)
- Manage inventory
- View orders and generate reports
- Add users/staff
B. Staff/Waiter Panel
- Take customer orders
- View current menu
- Generate bills
- View order history
C. Customer View
- View menu
- Place order (optional, if self-service portal included)
- Check order status
4. Features
- Login and Authentication (Admin/Staff)
- Menu Management
- Order Placement and Tracking
- Bill Generation
- Sales and Inventory Reports
- User Management
5. Database Design (MySQL)
Tables:
1. users
- user_id (INT, PK)
- username (VARCHAR)
- password (VARCHAR)
- role (ENUM: admin, staff)
2. menu_items
- item_id (INT, PK)
- item_name (VARCHAR)
- price (DECIMAL)
- category (VARCHAR)
- availability (BOOLEAN)
3. orders
- order_id (INT, PK)
- order_date (DATETIME)
- total_amount (DECIMAL)
- status (ENUM: pending, completed)
4. order_items
- order_item_id (INT, PK)
- order_id (FK)
- item_id (FK)
- quantity (INT)
5. inventory
- inventory_id (INT, PK)
- item_name (VARCHAR)
- quantity_available (INT)
6. Front-End Design (PHP)
- login.php - User login interface
- dashboard.php - Admin/Staff dashboard
- add_item.php - Add/edit menu items
- order.php - Take new orders
- bill.php - Generate and print bills
- report.php - View sales/inventory reports
7. Security Features
- Password hashing with password_hash()
- Session management
- Input validation and SQL injection prevention using prepared statements
8. Future Enhancements
- Online ordering for customers
- Mobile app integration
- Payment gateway integration
- Real-time inventory update system