Skip to content

quangduy201/cafe-application

Repository files navigation

Cafe Application

Cafe Management is a desktop Python application that helps manage a cafe. The app includes face recognition for customer authentication using OpenCV. It consists of three layers:

  • Graphics User Interface (GUI): a presentation layer that uses Tkinter for the user interface.
  • Business Logic Layer (BLL): a business layer that handles the application logic.
  • Data Access Layer (DAL): a data access layer that connects to a MySQL database.

Table of Contents


Features

The Cafe Management application includes the following features:

  • Customer authentication using face recognition.
  • Manage items which a real cafe has (e.g. products, staffs, customers, ingredients...).
  • Create, manage and export bills (selling products) and receipt (importing ingredients) to Excel.
  • Generate reports on sales, inventory and other metrics.

Installation

To install the Cafe Management application, follow these steps:

  • Clone the repository to your local machine (VSCode is recommended).
  • Open a terminal at the project folder and type this: python ./setup.py to create a virtual environment (venv)
  • Activate the venv: ./venv/Scripts/activate
  • Install the required dependencies: pip install -r requirements.txt
  • Create a MySQL database named cafe_management and run this SQL file.
  • Configure this MySQL class to connect to your MySQL database.
  • Build the project and run this CafeManagement class.

Usage

  • Log in with the default account: username = 'admin', password = 'admin'
  • Use the GUI to manage items, bills, and receipts.
  • Click the "DETECTION" button to use face recognition for customer authentication.

Contributors

The following contributors have contributed to the Cafe Management:

ID Name
3121410116 Đinh Quang Duy
3121410296 Nguyễn Hoàng Long
3121410138 Nguyễn Zi Đan

External Dependencies

Look up this file requirement.txt to see the dependencies


License

This project is licensed under the MIT License. See the LICENSE file for more information.


This file was created on April 20, 2023, v1.0