An open API service indexing awesome lists of open source software.

https://github.com/prangonghose/calorie-counter

The aim of this project is to create a Calorie Counter as the final project for the masters course of Python.
https://github.com/prangonghose/calorie-counter

error-handling oops-in-python python3

Last synced: 11 months ago
JSON representation

The aim of this project is to create a Calorie Counter as the final project for the masters course of Python.

Awesome Lists containing this project

README

          


Calorie Counter

# πŸ“— Table of Contents

- [πŸ“– About the Project](#about-project)
- [πŸ›  Built With](#built-with)
- [Key Features](#key-features)
- [πŸ’» Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [πŸ‘₯ Authors](#authors)
- [🀝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [πŸ™ Acknowledgements](#acknowledgements)

# πŸ“– Project Name

## Calorie Counter

### About this project
The aim of this project is to create a Calorie Counter as the final project for the masters course of Python.

## πŸ›  Built With

- `Python`

### Key Features
- The program can display a list of items as menu by reading data from a JSON file. As an added advantage, only updating the JSON file can update the menu and entire order taking process in the next run.
- The user can choose what to order by simply typing the names of the food items available in the order. Invalid or spelling mistakes in an order will be displayed to the user for correction.
- A valid order will create an `Order` object and will go through a process of calorie and price counting after which total calorie and total price will be displayed to the user.
- Order will be refused if the total calorie is more than 2000.
- All orders are stored in a `JSON` file and can be visualized using `matplotlib` by running `visualize.py` file. The `all_orders.json` file is initially populated for visualization purpose.
- Running only the `main.py` drives the whole program to return the desired output.

(back to top)

## πŸ’» Getting Started
To clone the repository in local environment try following steps.

### Prerequisites

- [x] A web browser like Google Chrome.
- [x] A code editor like Visual Studio Code with `Git` and `Python3`.
- [x] `Matplotlib`

You can check if Git is installed by running the following command in the terminal.

```
$ git --version
```

Likewise for Node.js and npm for package installation.

```
$ python --version
```

### Setup

Clone the repository using [this link](https://github.com/PrangonGhose/Calorie-Counter.git).

### Install

In the terminal, go to your file directory and run this command.

```
$ git clone https://github.com/PrangonGhose/Calorie-Counter.git
```
### Get into development

In the terminal, run these commands to get into development.
```
$ cd Calorie-Counter

$ python main.py
```

## πŸ‘₯ Authors

πŸ‘€ **Prangon Ghose**

- GitHub: [@PrangonGhose](https://github.com/PrangonGhose)
- LinkedIn: [Prangon Ghose](https://www.linkedin.com/in/prangon-ghose/)

(back to top)

## 🀝 Contributing

Contributions, issues, and feature requests are welcome! Add suggestions by opening new issues.

Feel free to check the [issues page](https://github.com/PrangonGhose/Calorie-Counter/issues).

(back to top)

## ⭐️ Show your support

Give a ⭐️ if you like this project!

(back to top)

## πŸ™ Acknowledgments

Authors would like to thank:
- Instructor [Sam Onaisi](https://www.linkedin.com/in/sam-onaisi-1a8585a2/)
- [Learning Planet Institute](https://www.learningplanetinstitute.org/en/)
- [UniversitΓ© Paris CitΓ©](https://u-paris.fr/en/)

(back to top)