A modular Python + Rich based CLI system to manage café operations with menu, orders, and analytics — built for both customers and admins.
- 🔑 Admin Authentication – Secure login with username & password (hashing + salting, strong password rules).
- 🔐 Session Management – Auto 30-min timeout with 5- & 1-min warnings, stored in cafe_session.json (auto-cleared).
- 📋 Menu & Category Management – Add, update, remove, and filter items.
- 🛒 Order Management – Place, view, update, mark paid, filter orders.
- 📊 Analytics & Dashboard – Daily & monthly summaries, menu insights.
- 👤 Customer CLI – Browse menu, place/view orders.
- 🛠️ Admin CLI – Manage items, categories, orders, analytics, and authentication.
BrewOps/
├── analytics/analyzer.py # Daily/monthly summary & menu insights
├── auth/auth.py # Core auth: register, login, hashing, salting
├── cli/
| ├── admin_auth_cli.py # Admin auth: username & password input
│ ├── admin_cli.py # Admin: items, categories, orders, analysis
│ ├── customer_cli.py # Customer: browse, place, track orders
│ ├── items_category_cli.py # Item/category CRUD & filters
│ └── order_cli.py # Order CRUD, status updates, filtering
├── menu/
│ ├── items.py # Item core class (with from_dict & to_dict)
│ └── manager.py # Item manager (CRUD + features)
├── orders/
│ ├── order.py # Order core class
│ └── order_manager.py # Order manager (CRUD + ops)
├── session/
│ └── session_manager.py # Handles admin session lifecycle (timeout + warnings)
├── shared/
│ ├── managers.py # Manager class imports
│ └── order_helper.py # Helpers for placing orders (admin/customer)
├── utils/
│ ├── display.py # UI functions (Rich-based)
│ ├── filtering.py # Menu maps & filters
│ ├── json_io.py # Save/load JSON files
│ └── validation.py # Item & order validation
├── data/
| ├── cafe_session.json # Stores active admin session
│ ├── menu.json # Café menu data
│ ├── orders.json # Orders data
| └── users.json # Admin accounts (hashed & salted passwords)
|
├── main_menu.py # Entry: admin & customer portal
└── main.py # Main entry point
- Python 3.10+ – Core programming language
- Rich – Beautiful CLI interface
- JSON – Lightweight storage storage
git clone https://github.com/your-username/cafe-system.git
cd BrewOps
python main.py- [✅] Authentication system
- [✅] Session Management
- Export reports (CSV/PDF/JSON)
- Inventory management
PRs are welcome! Fork the repo and submit improvements 🚀
MIT License – feel free to use and modify.