Skip to content

Python terminal app to manage a restaurant. Manage products, stock and pricing.

Notifications You must be signed in to change notification settings

Ziziou91/python-cafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python cafe app

Description

A simple application to practice TDD, error handling, and writing to files.

The app simulates a cafe and the user can interact with it as either the owner or a customer

Owner

While interacting with the application as the owner the user can:

  • Add and remove products from the stock dictionary in data/cafe_data.py
  • Amend the price and stock level properties for existing items in the stock dictionary.

Customer

As a customer you can view the menu and order items available in the stock dictionary. These items are removed from stock and stored in an order dictionary. If an item isn't in stock, or there isn't enough to fill the customer order, you'll be notified and asked to amend your order.

You can view the items stored in order, and then get the total by asking for the bill.

Usage

Run the app with the following command in python_cafe:

python cafe.py

All interaction with the app is completed through the CLI.

Testing

Testing with pytest can be run by using the following command in python_cafe:

pytest

About

Python terminal app to manage a restaurant. Manage products, stock and pricing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages