{"id":20663080,"url":"https://github.com/kivanc57/restaurant_management","last_synced_at":"2025-03-10T06:18:18.840Z","repository":{"id":249646378,"uuid":"832105867","full_name":"kivanc57/restaurant_management","owner":"kivanc57","description":"This Python application simulates a restaurant management system. It handles table booking, menu display, order processing, and payment management. The Restaurant class integrates these features, allowing interaction through a command-line interface.","archived":false,"fork":false,"pushed_at":"2024-08-01T10:56:29.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T12:27:04.560Z","etag":null,"topics":["finance","oop","python","restaurant-management"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kivanc57.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-22T11:14:25.000Z","updated_at":"2024-08-01T17:29:12.000Z","dependencies_parsed_at":"2024-08-01T01:33:40.878Z","dependency_job_id":"2a12d770-a92f-4818-a28a-f967eeda1671","html_url":"https://github.com/kivanc57/restaurant_management","commit_stats":null,"previous_names":["kgordu/restaurant_management","kivanc57/restaurant_management"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivanc57%2Frestaurant_management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivanc57%2Frestaurant_management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivanc57%2Frestaurant_management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivanc57%2Frestaurant_management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kivanc57","download_url":"https://codeload.github.com/kivanc57/restaurant_management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242799141,"owners_count":20186887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["finance","oop","python","restaurant-management"],"created_at":"2024-11-16T19:16:34.379Z","updated_at":"2025-03-10T06:18:18.791Z","avatar_url":"https://github.com/kivanc57.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restaurant Management System\n\n## Overview\n**Restaurant Management System** is a Python-based application designed to simulate the management of a restaurant. It features functionalities for displaying a menu, taking orders, booking tables, and processing payments. The system also handles basic restaurant operations like updating menu items and checking customer budgets.\n\n## Features\n\n🚀 **Menu Management** 🚀\n  * Display and update the restaurant menu.\n    \n✨ **Table Reservation** ✨\n  * Book tables and manage table availability.\n    \n🐧 **Order Handling** 🐧\n  * Take customer orders and manage customer-specific requests.\n    \n💸 **Payment Processing** 💸\n  * Handle transactions and manage customer budgets.\n\n## Installation\n1. **Clone the repository**: \n    ```bash\n    git clone https://github.com/yourusername/restaurant_management_system.git\n    ```\n\n2. **Navigate to the project directory**:  \n    ```bash\n    cd restaurant_management_system\n    ```\n\n3. **Install any required dependencies (if applicable)**.\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n## Usage  \n1. Ensure you have Python 3.x installed.\n\n2. Run the application by executing:\n    ```bash\n    python main.py\n    ```\n\n3. Follow the on-screen prompts to book a table, view the menu, place orders, and process payments.\n\n## Project Structure\n```markdown\n📁 project-root\n│\n├── 📁 src\n│ ├── 📄 __init__.py\n│ ├── 📄 constants.py\n│ └── 📄 restaurant.py\n│\n├── 📄 .gitignore\n├── 📄 .gitattributes\n└── 📄 main.py\n```\n\n* **src/**: Contains source code files.\n  * ***\\__init__.py***: Initializes the source package and sets up logging.\n  * ***constants.py***: Defines constants used throughout the application.\n  * ***restaurant.py***: Contains the `Restaurant` class with methods for managing restaurant operations.\n  \n* **.gitignore**: Specifies files and directories to be ignored by Git (e.g., virtual environments, build artifacts).\n* **.gitattributes**: Ensures consistent line endings across different operating systems in the repository.\n* **main.py**: The entry point of the application. It initializes the restaurant system, handles table booking, menu display, order taking, and payment processing. It provides a complete flow from starting the application to completing a transaction.\n\n## Code Example\n🛎️ **Menu Management** 🛎️ -\u003e The `print_menu` method in `Restaurant` displays the current menu\n\n🍽️ **Table Reservation** 🍽️  -\u003e The `book_table` method allows for reserving a table\n\n🧾 **Order Handling** 🧾 -\u003e The `get_order` and `print_order_details` methods handle and display customer orders.\n\n💳 **Payment Processing** 💳 -\u003e The `get_payment` method processes the customer's payment.\n\n## Code Example\n### Main Program\n```python\nfrom src.constants import MENU_ITEMS, TABLES, CUSTOMER_ORDERS, CUSTOMER_BUDGET\nfrom src.restaurant import Restaurant\n\ndef main():\n    menu_items = MENU_ITEMS\n    tables = TABLES\n    customer_orders = CUSTOMER_ORDERS\n    customer_budget = CUSTOMER_BUDGET\n\n    print(\"Welcome to my restaurant, Sir\\n\")\n    \n    # Initialize the Restaurant object\n    my_restaurant = Restaurant(menu_items, tables, customer_orders, customer_budget)\n    \n    # Display available tables and book a table\n    print(\"Checking table availability...\")\n    my_restaurant.book_table()\n    \n    # Display the current menu\n    print(\"Displaying the menu...\")\n    my_restaurant.print_menu()\n    \n    # Get orders from the user\n    print(\"Taking customer orders...\")\n    my_restaurant.get_order()\n    \n    # Display details of the order\n    print(\"Displaying order details...\")\n    my_restaurant.print_order_details()\n    \n    # Process payment\n    print(\"Processing payment...\")\n    my_restaurant.get_payment()\n\n    # Final message\n    print(\"Thank you for visiting our restaurant. Have a great day!\")\n\nif __name__ == '__main__':\n    main()\n\n```\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 (GPL-3.0) - see the [LICENSE](https://github.com/kivanc57/restaurant_management/blob/main/README.md) file for details.\n\n\n## Contact\nLet me know if there are any specific details you’d like to adjust or additional sections you want to include!  \n* **Email**: kivancgordu@hotmail.com\n* **Version**: 1.0.0\n* **Date**: 22-06-2024\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkivanc57%2Frestaurant_management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkivanc57%2Frestaurant_management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkivanc57%2Frestaurant_management/lists"}